Skip to content

Commit

Permalink
Use tox --parallel in run_tests action
Browse files Browse the repository at this point in the history
  • Loading branch information
ajjackson committed Nov 14, 2024
1 parent a19e995 commit 369635c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- name: Setup MSVC env on Windows
if: startsWith(matrix.os, 'windows')
env:
MSVC_BIN: 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64'
MSVC_BIN: 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64'
shell: bash
run: |
echo "CC=${MSVC_BIN}\cl.exe" >> $GITHUB_ENV
Expand All @@ -58,12 +58,15 @@ jobs:
if: github.event_name != 'workflow_dispatch'
env:
TOX_SKIP_ENV: '.*?(py311).*?'
TOX_PARALLEL_NO_SPINNER: 1
shell: bash -l {0}
run: python -m tox
run: python -m tox --parallel
- name: Run tests, workflow dispatch so test all Python versions
if: github.event_name == 'workflow_dispatch'
env:
TOX_PARALLEL_NO_SPINNER: 1
shell: bash -l {0}
run: python -m tox
run: python -m tox --parallel
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 369635c

Please sign in to comment.