Repository navigation
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
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
ede7b21
feat: Added test workflow to install builded wheels before the upload
jakub-kocka acbb166
feat: Added additional exclude mechanism for forbidden wheels
jakub-kocka 9d18e21
feat: Added cross-verification tests for S3 and exclude_list in PR
jakub-kocka dbd392c
feat: Added architecture resolve mechanism for requirements in exclud…
jakub-kocka 34d5a9b
fix: Added Linux dependencies for building and repairing wheels
jakub-kocka 1daca48
fix: Fixed test wheels by installation script
jakub-kocka 70f4e59
ci: Updated the upload workflow with the installation tests
jakub-kocka 41285d8
docs: Updated activity diagram of the added tests
jakub-kocka f3c46c4
fix: Fixed root acess for dependency script
jakub-kocka 0d6836d
feat: Introduced S3 violation exlusion regexes
jakub-kocka dfbdc1b
fix: Fixed S3 verification supported Python versions
jakub-kocka File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
jakub-kocka marked this conversation as resolved.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.