Skip to content

Commit 7216e84

Browse files
committed
Expand CI, enable windows testing
1 parent 712f29e commit 7216e84

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ jobs:
2929

3030
strategy:
3131
matrix:
32-
os: [ubuntu-latest, macos-latest]
33-
python-version: ["3.9"]
32+
os: [ubuntu-latest, macos-latest, windows-latest]
33+
python-version: ["3.9", "3.10", "3.11", "3.12"]
3434

3535
steps:
3636
- uses: actions/checkout@v4
@@ -56,7 +56,15 @@ jobs:
5656

5757
- name: Test
5858
run: make coverage
59-
59+
if: matrix.os != 'windows-latest'
60+
61+
- name: Test
62+
run: |
63+
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
64+
make coverage
65+
shell: cmd
66+
if: matrix.os == 'windows-latest'
67+
6068
- name: Upload test results (Python)
6169
uses: actions/upload-artifact@v4
6270
with:
@@ -68,7 +76,7 @@ jobs:
6876
uses: EnricoMi/publish-unit-test-result-action@v2
6977
with:
7078
files: '**/junit.xml'
71-
if: matrix.os == 'ubuntu-latest'
79+
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9'
7280

7381
- name: Upload coverage
7482
uses: codecov/codecov-action@v5
@@ -82,4 +90,4 @@ jobs:
8290
with:
8391
name: dist-${{matrix.os}}
8492
path: dist
85-
if: matrix.os == 'ubuntu-latest'
93+
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9'

0 commit comments

Comments
 (0)