Skip to content

Commit

Permalink
Use msbuild setup action
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed May 15, 2020
1 parent 4c3d33d commit 614b28f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
shell: bash
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
GYP_MSVS_VERSION=2015 GYP_MSVS_OVERRIDE_PATH="C:\\Dummy" python -m pytest
GYP_MSVS_VERSION=2015 GYP_MSVS_OVERRIDE_PATH="C:\\Dummy" pytest
else
python -m pytest
fi
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,23 @@ jobs:
python-version: ${{ matrix.python }}
env:
PYTHON_VERSION: ${{ matrix.python }}
- name: Add msbuild to PATH
if: matrix.os == 'windows-latest'
uses: microsoft/[email protected]
- name: Install Dependencies
run: |
python -m pip install --upgrade pip flake8 pytest==4.6.6
python -m pip install --upgrade pip flake8 pytest
npm install
- name: Lint Python
run: |
python -m flake8 --version
python -m flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
python -m flake8 . --count --exit-zero --ignore=E111,E114,W503 --max-complexity=10 --max-line-length=127 --statistics
- name: Run Tests
shell: bash
run: |
echo "Testing with Python $(python --version 2>&1)"
npm test
if [ "$RUNNER_OS" == "Windows" ]; then
GYP_MSVS_VERSION=2015 GYP_MSVS_OVERRIDE_PATH="C:\\Dummy" python -m pytest
GYP_MSVS_VERSION=2015 GYP_MSVS_OVERRIDE_PATH="C:\\Dummy" pytest
else
python -m pytest
fi

0 comments on commit 614b28f

Please sign in to comment.