Skip to content

Commit

Permalink
ci: Fix ci error on pure-wheels run for unchanged packages
Browse files Browse the repository at this point in the history
  • Loading branch information
aborgna-q committed Nov 5, 2024
1 parent 23fb63c commit 1f4e802
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/python-pure-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,15 @@ jobs:
if: ${{ steps.check-tag.outputs.run == 'true' }}
uses: mozilla-actions/[email protected]


- name: Set up uv
if: ${{ steps.check-tag.outputs.run == 'true' }}
uses: astral-sh/setup-uv@v3
with:
version: ${{ env.UV_VERSION }}
enable-cache: true
- name: Install Python 3.13
run: uv python install 3.13
if: ${{ steps.check-tag.outputs.run == 'true' }}

- name: Build sdist and wheels
if: ${{ steps.check-tag.outputs.run == 'true' }}
Expand All @@ -83,7 +84,7 @@ jobs:
uv run -f dist --with ${{ matrix.target.name }} --refresh-package ${{ matrix.target.name }} --no-project -- python -c "import ${{ matrix.target.name }}"
uvx twine check --strict dist/*
- name: Report
- name: Report
if: ${{ (github.event_name == 'release' && github.ref_type == 'tag' && startsWith(github.ref, format('refs/tags/{0}-v', matrix.target.dir)) ) || (github.event_name == 'workflow_dispatch' && github.ref_type == 'tag' && startsWith(github.ref, format('refs/tags/{0}-v', matrix.target.dir)) ) }}
run: |
echo "Publishing to PyPI..."
Expand All @@ -97,4 +98,4 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
with:
verbose: true
skip-existing: true
skip-existing: true

0 comments on commit 1f4e802

Please sign in to comment.