|
12 | 12 | name: Build ${{ matrix.platform }} ${{ matrix.target }} |
13 | 13 | runs-on: ${{ matrix.platform }} |
14 | 14 | strategy: |
| 15 | + fail-fast: false |
15 | 16 | matrix: |
16 | 17 | include: |
17 | 18 | - platform: macos-15 |
@@ -44,12 +45,25 @@ jobs: |
44 | 45 | manylinux: ${{ matrix.manylinux }} |
45 | 46 | command: build |
46 | 47 | args: --release --locked --compatibility pypi --out dist |
47 | | - - shell: bash |
| 48 | + - name: Create wheel smoke-test environment |
| 49 | + run: python -m venv wheel-venv |
| 50 | + - name: Test wheel on POSIX |
| 51 | + if: runner.os != 'Windows' |
| 52 | + working-directory: wheel-venv |
| 53 | + shell: bash |
48 | 54 | run: | |
49 | | - python -m venv wheel-venv |
50 | | - wheel-venv/bin/python -m pip install dist/*.whl || wheel-venv/Scripts/python -m pip install dist/*.whl |
51 | | - wheel-venv/bin/python -c "import sid; import sid._snippet" || wheel-venv/Scripts/python -c "import sid; import sid._snippet" |
52 | | - wheel-venv/bin/python -m pip check || wheel-venv/Scripts/python -m pip check |
| 55 | + bin/python -m pip install ../dist/*.whl |
| 56 | + bin/python -c "import sid; import sid._snippet" |
| 57 | + bin/python -m pip check |
| 58 | + - name: Test wheel on Windows |
| 59 | + if: runner.os == 'Windows' |
| 60 | + working-directory: wheel-venv |
| 61 | + shell: pwsh |
| 62 | + run: | |
| 63 | + $wheel = (Get-ChildItem ../dist/*.whl).FullName |
| 64 | + .\Scripts\python.exe -m pip install $wheel |
| 65 | + .\Scripts\python.exe -c "import sid; import sid._snippet" |
| 66 | + .\Scripts\python.exe -m pip check |
53 | 67 | - uses: actions/upload-artifact@v4 |
54 | 68 | with: |
55 | 69 | name: wheel-${{ matrix.platform }}-${{ matrix.target }} |
|
0 commit comments