Skip to content

Commit

Permalink
Disable type checking tests for <= 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
francium committed Jun 26, 2023
1 parent 198e2b5 commit 4594f31
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
python:
- '3.11'
- '3.10'
# - '3.9'
# - '3.8'
# - '3.7'
- '3.9'
- '3.8'
- '3.7'
name: Python ${{ matrix.python }}
steps:
# Python
Expand Down Expand Up @@ -46,7 +46,14 @@ jobs:

# Tests
- name: Run tests
run: pytest --ignore=tests/test_pattern_matching.py
run: pytest --ignore=tests/test_pattern_matching.py --ignore=tests/type-checking/test_result.yml
- name: Run tests (type checking)
if: matrix.python != '3.7' && matrix.python != '3.8' && matrix.python != '3.9'
# These started breaking for <= 3.9, due to the type checker using a
# '|' for unions rather than 'Union[...]', so it's not possible to run
# the tests without maintaining two duplicate files (one for <= 3.9 and
# one for > 3.9)
run: pytest tests/type-checking/test_result.yml
- name: Run tests (pattern matching)
if: matrix.python == '3.10' || matrix.python == '3.11'
run: pytest tests/test_pattern_matching.py
Expand Down

0 comments on commit 4594f31

Please sign in to comment.