Skip to content

Commit

Permalink
Use uv build
Browse files Browse the repository at this point in the history
  • Loading branch information
jayqi committed Feb 12, 2025
1 parent a06aac0 commit 1df6231
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,32 +13,20 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "pip"
cache-dependency-path: |
pyproject.toml
requirements-dev.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- uses: astral-sh/setup-uv@v5

- name: Check that versions match
id: version
run: |
echo "Release tag: [${{ github.event.release.tag_name }}]"
PACKAGE_VERSION=$(python -c "import reprexlite; print(reprexlite.__version__)")
PACKAGE_VERSION=$(uv run python -c "import reprexlite; print(reprexlite.__version__)")
echo "Package version: [$PACKAGE_VERSION]"
[ ${{ github.event.release.tag_name }} == "v$PACKAGE_VERSION" ] || { exit 1; }
echo "::set-output name=major_minor_version::v${PACKAGE_VERSION%.*}"
- name: Build package
run: |
make dist
uv build
- name: Publish to Test PyPI
uses: pypa/[email protected]
Expand Down

0 comments on commit 1df6231

Please sign in to comment.