GeezerVison is showing github.com — test: add Windows to GitHub Actions testing (#1996) · nodejs/node-gyp@31ecc84
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/Python_tests.yml +7-3Lines changed: 7 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -# TODO: Line 14, enable os: windows-latest |
2 | 1 | # TODO: Line 15, enable python-version: 3.5 |
3 | 2 | # TODO: Line 36, enable pytest --doctest-modules |
4 | 3 |
|
|
11 | 10 | fail-fast: false |
12 | 11 | max-parallel: 15 |
13 | 12 | matrix: |
14 | | - os: [macos-latest, ubuntu-latest] # , windows-latest] |
| 13 | + os: [macos-latest, ubuntu-latest, windows-latest] |
15 | 14 | python-version: [2.7, 3.6, 3.7, 3.8] # 3.5, |
16 | 15 | steps: |
17 | 16 | - uses: actions/checkout@v1 |
|
30 | 29 | flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics |
31 | 30 | # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide |
32 | 31 | 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' |
34 | 34 | 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 |
35 | 39 | # - name: Run doctests with pytest |
36 | 40 | # run: pytest --doctest-modules |