Skip to content

Commit

Permalink
Try to run mypy on all Python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Oct 21, 2020
1 parent 6ae12eb commit 277ec32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ install:
- pip install --upgrade pip wheel
- pip install --upgrade setuptools
- pip install --upgrade coveralls
- if [[ $LATEST -eq 1 ]]; then pip install --upgrade mypy; fi
- pip install --upgrade mypy
- pip install -e .
script:
- # Unit tests
Expand Down Expand Up @@ -77,8 +77,8 @@ script:
- echo Unit tests complete
- coveralls || [[ $? -eq 139 ]]
- # Typing
- if [[ $LATEST -eq 1 ]]; then python -m mypy --strict chess; fi
- if [[ $LATEST -eq 1 ]]; then python -m mypy --strict examples/**/*.py; fi
- python -m mypy --strict chess
- python -m mypy --strict examples/**/*.py
- # Perft tests
- if [[ $LATEST -eq 1 ]]; then python examples/perft/perft.py -t 1 examples/perft/random.perft --max-nodes 10000; fi
- if [[ $LATEST -eq 1 ]]; then python examples/perft/perft.py -t 1 examples/perft/tricky.perft; fi
Expand Down

0 comments on commit 277ec32

Please sign in to comment.