-
Notifications
You must be signed in to change notification settings - Fork 8
Added test workflow to install builded wheels before the upload #58
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
base: main
Are you sure you want to change the base?
Changes from all commits
ede7b21
acbb166
9d18e21
dbd392c
11a4d86
483d363
848a8c7
d0d1ec5
a1afd89
2407246
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was pointed out by AI. Please check its validity....
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a wrong suggestion. The logic described is basically true, but it is a valid and desired behavior.
What is not true is that:
When the exclusion rule is stricter (e.g., the whole package -> the package is deleted on all platforms, and there is no way to get back into the tested-wheels artifacts) When the final merge of tested wheels is done, this is basically what happens on the S3: all packages get merged together in the correct PyPI endpoint. This is mainly done to save some upload complexity because of a few identical packages produced, for example, from the I hope this has explained it better, and the reason why this suggestion will not be taken into account. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,121 @@ | ||
| name: Test wheels installation | ||
|
|
||
| # Test that all built wheels are valid and platform-compatible | ||
| # This workflow runs after repair-wheels and before upload to catch any issues | ||
| # Uses test_wheels_install.py for consistent testing across all platforms | ||
|
|
||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| supported_python_versions: | ||
| description: 'JSON array of supported Python versions' | ||
| required: true | ||
| type: string | ||
|
|
||
| jobs: | ||
| test-install: | ||
| name: Test ${{ matrix.os }} - Python ${{ matrix.python-version }} | ||
| runs-on: ${{ matrix.runner }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: | ||
| - Windows | ||
| - Linux x86_64 | ||
| - macOS Intel | ||
| - macOS ARM | ||
| - Linux ARM64 | ||
| - Linux ARMv7 | ||
| - Linux ARMv7 Legacy | ||
| include: | ||
| - os: Windows | ||
| runner: windows-latest | ||
| arch: windows-x86_64 | ||
| - os: Linux x86_64 | ||
| runner: ubuntu-latest | ||
| arch: linux-x86_64 | ||
| - os: macOS Intel | ||
| runner: macos-15-intel | ||
| arch: macos-x86_64 | ||
| - os: macOS ARM | ||
| runner: macos-latest | ||
| arch: macos-arm64 | ||
| - os: Linux ARM64 | ||
| runner: ubuntu-24.04-arm | ||
| arch: linux-arm64 | ||
| - os: Linux ARMv7 | ||
| runner: ubuntu-latest | ||
| arch: linux-armv7 | ||
| - os: Linux ARMv7 Legacy | ||
| runner: ubuntu-latest | ||
| arch: linux-armv7legacy | ||
| python-version: ${{ fromJson(inputs.supported_python_versions) }} | ||
| exclude: | ||
| # Python 3.14 doesn't have bullseye images for ARM | ||
| - python-version: '3.14' | ||
| os: Linux ARMv7 Legacy | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up QEMU for ARMv7 | ||
| if: matrix.os == 'Linux ARMv7' || matrix.os == 'Linux ARMv7 Legacy' | ||
| uses: docker/setup-qemu-action@v3 | ||
| with: | ||
| platforms: linux/arm/v7 | ||
|
|
||
| - name: Download all repaired wheels | ||
| uses: actions/download-artifact@v4 | ||
| with: | ||
| name: wheels-repaired-all | ||
| path: ./downloaded_wheels | ||
|
|
||
| - name: Setup Python | ||
| if: matrix.os != 'Linux ARMv7' && matrix.os != 'Linux ARMv7 Legacy' | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
|
|
||
| - name: Test wheel installation | ||
| if: matrix.os != 'Linux ARMv7' && matrix.os != 'Linux ARMv7 Legacy' | ||
| run: | | ||
| python --version | ||
| python -m pip install --upgrade pip | ||
| pip install -r build_requirements.txt | ||
| python test_wheels_install.py | ||
|
|
||
| - name: Test wheel installation - ARMv7 (in Docker) | ||
| if: matrix.os == 'Linux ARMv7' | ||
| run: | | ||
| docker run --rm --platform linux/arm/v7 \ | ||
| -v $(pwd):/work \ | ||
| -w /work \ | ||
| python:${{ matrix.python-version }}-bookworm \ | ||
| bash -c " | ||
| python --version | ||
| python -m pip install --upgrade pip | ||
| pip install -r build_requirements.txt | ||
| python test_wheels_install.py | ||
| " | ||
|
|
||
| - name: Test wheel installation - ARMv7 Legacy (in Docker) | ||
| if: matrix.os == 'Linux ARMv7 Legacy' | ||
| run: | | ||
| docker run --rm --platform linux/arm/v7 \ | ||
| -v $(pwd):/work \ | ||
| -w /work \ | ||
| python:${{ matrix.python-version }}-bullseye \ | ||
| bash -c " | ||
| python --version | ||
| python -m pip install --upgrade pip | ||
| pip install -r build_requirements.txt | ||
| python test_wheels_install.py | ||
| " | ||
|
|
||
| - name: Upload tested wheels | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: wheels-tested-${{ matrix.arch }}-${{ matrix.python-version }} | ||
| path: ./downloaded_wheels/*.whl | ||
| if-no-files-found: warn |
Uh oh!
There was an error while loading. Please reload this page.