Skip to content

Commit 614b28f

Browse files
committed
Use msbuild setup action
1 parent 4c3d33d commit 614b28f

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/test-python.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
shell: bash
4242
run: |
4343
if [ "$RUNNER_OS" == "Windows" ]; then
44-
GYP_MSVS_VERSION=2015 GYP_MSVS_OVERRIDE_PATH="C:\\Dummy" python -m pytest
44+
GYP_MSVS_VERSION=2015 GYP_MSVS_OVERRIDE_PATH="C:\\Dummy" pytest
4545
else
4646
python -m pytest
4747
fi

.github/workflows/test.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,23 @@ jobs:
3030
python-version: ${{ matrix.python }}
3131
env:
3232
PYTHON_VERSION: ${{ matrix.python }}
33+
- name: Add msbuild to PATH
34+
if: matrix.os == 'windows-latest'
35+
uses: microsoft/[email protected]
3336
- name: Install Dependencies
3437
run: |
35-
python -m pip install --upgrade pip flake8 pytest==4.6.6
38+
python -m pip install --upgrade pip flake8 pytest
3639
npm install
3740
- name: Lint Python
3841
run: |
3942
python -m flake8 --version
4043
python -m flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
4144
python -m flake8 . --count --exit-zero --ignore=E111,E114,W503 --max-complexity=10 --max-line-length=127 --statistics
4245
- name: Run Tests
43-
shell: bash
4446
run: |
45-
echo "Testing with Python $(python --version 2>&1)"
4647
npm test
4748
if [ "$RUNNER_OS" == "Windows" ]; then
48-
GYP_MSVS_VERSION=2015 GYP_MSVS_OVERRIDE_PATH="C:\\Dummy" python -m pytest
49+
GYP_MSVS_VERSION=2015 GYP_MSVS_OVERRIDE_PATH="C:\\Dummy" pytest
4950
else
5051
python -m pytest
5152
fi

0 commit comments

Comments
 (0)