Skip to content

Commit

Permalink
fix fast/slow test selection logic
Browse files Browse the repository at this point in the history
  • Loading branch information
dfremont committed Dec 13, 2024
1 parent e4698ed commit eedaf8d
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ jobs:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-latest, windows-latest, macos-13, macos-latest]
extras: ["test-full"]
include:
# Only run slow tests on the latest version of Python
- python-version: "3.12"
slow: true
runs-on: ${{ matrix.os }}

steps:
Expand Down Expand Up @@ -63,12 +66,8 @@ jobs:
- name: Install Scenic and dependencies
run: |
python -m pip install -e ".[${{ matrix.extras }}]"
python -m pip install -e ".[test-full]"
- name: Run pytest in fast mode
- name: Run pytest
run: |
pytest ${{ inputs.options || '--fast --no-graphics' }}
- name: Run pytest in full mode
if: ${{ (matrix.os == 'windows-latest' || matrix.os == 'macos-13' || matrix.os == 'macos-latest') && matrix.python-version == '3.12' }}
run: pytest --no-graphics
pytest ${{ inputs.options || (matrix.slow && '--no-graphics' || '--fast --no-graphics') }}

0 comments on commit eedaf8d

Please sign in to comment.