@@ -66,54 +66,59 @@ jobs:
6666 run: make checks
6767 if: matrix.os == 'ubuntu-latest'
6868
69- - name: Build
70- run: make build
71-
7269 - name: Test
7370 run: make coverage
7471
7572 - name: Upload test results (Python)
7673 uses: actions/upload-artifact@v7
7774 with:
7875 name: {% raw %} test-results-${{ matrix.os }}-${{ matrix.python-version }}{% endraw %}
79- path: '**/ junit.xml'
80- if: matrix.os == 'ubuntu-latest'
76+ path: junit.xml
77+ if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
8178
8279 - name: Publish Unit Test Results
8380 uses: EnricoMi/publish-unit-test-result-action@v2
8481 with:
8582 files: '**/junit.xml'
86- if: matrix.os == 'ubuntu-latest'
83+ if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
8784
8885 - name: Upload coverage
8986 uses: codecov/codecov-action@v6
9087 with:
9188 token: {% raw %} ${{ secrets.CODECOV_TOKEN }}{% endraw %}
9289
93- - name: Set up QEMU
94- uses: docker/setup-qemu-action@v4
95- with:
96- platforms: all
97- if: runner.os == 'Linux' && runner.arch == 'X64'
90+ - name: Install build dependencies
91+ run: pip install cibuildwheel
9892
99- - name: Make dist
93+ - name: Make dist (Linux)
10094 run: |
10195 make dist-py-sdist
10296 make dist-py-wheel
10397 make dist-check
10498 env:
10599 CIBW_BUILD: {% raw %} "${{ matrix.cibuildwheel }}-manylinux*"{% endraw %}
100+ CIBW_BUILD_VERBOSITY: 3
106101 if: matrix.os == 'ubuntu-latest'
107102
108- - name: Make dist
103+ - name: Make dist (Macos)
109104 run: |
110105 make dist-py-wheel
111- make dist-check
112106 env:
113- CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET=11.0
114- if: matrix.os != 'ubuntu-latest'
107+ CIBW_BUILD: {% raw %} "${{ matrix.cibuildwheel }}-macos*"{% endraw %}
108+ CIBW_BUILD_VERBOSITY: 3
109+ if: matrix.os == 'macos-latest'
110+
111+ - name: Make dist (Windows)
112+ run: |
113+ call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
114+ make dist-py-wheel
115+ shell: cmd
116+ env:
117+ CIBW_BUILD: {% raw %} "${{ matrix.cibuildwheel }}-win_amd64"{% endraw %}
118+ CIBW_BEFORE_ALL: call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
119+ if: matrix.os == 'windows-latest'
115120
116121 - uses: actions/upload-artifact@v7
117122 with:
118- name: {% raw %} dist-${{matrix.os}}{% endraw %}
123+ name: {% raw %} dist-${{matrix.os}}-${{matrix.python-version}} {% endraw %}
119124 path: dist
0 commit comments