Skip to content

Commit 31ecc84

Browse files
cclaussgengjiawen
authored andcommitted
test: add Windows to GitHub Actions testing (#1996)
PR-URL: #1996 Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
1 parent 5a729e8 commit 31ecc84

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/Python_tests.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# TODO: Line 14, enable os: windows-latest
21
# TODO: Line 15, enable python-version: 3.5
32
# TODO: Line 36, enable pytest --doctest-modules
43

@@ -11,7 +10,7 @@ jobs:
1110
fail-fast: false
1211
max-parallel: 15
1312
matrix:
14-
os: [macos-latest, ubuntu-latest] # , windows-latest]
13+
os: [macos-latest, ubuntu-latest, windows-latest]
1514
python-version: [2.7, 3.6, 3.7, 3.8] # 3.5,
1615
steps:
1716
- uses: actions/checkout@v1
@@ -30,7 +29,12 @@ jobs:
3029
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3130
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
3231
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
33-
- name: Test with pytest
32+
- name: Test with pytest (Linux and macOS)
33+
if: matrix.os != 'windows-latest'
3434
run: pytest
35+
- name: Test with pytest (Windows)
36+
if: matrix.os == 'windows-latest'
37+
shell: bash
38+
run: GYP_MSVS_VERSION=2015 GYP_MSVS_OVERRIDE_PATH="C:\\Dummy" pytest
3539
# - name: Run doctests with pytest
3640
# run: pytest --doctest-modules

0 commit comments

Comments
 (0)