Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Fix ci error on pure-wheels run for unchanged packages #687

Merged
merged 1 commit into from
Nov 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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