Merge pull request #4 from JGrothoff/dev #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check src files for typing with mypy | |
on: | |
push: | |
branches: main | |
paths: | |
- 'src/**' | |
- 'pyproject.toml' | |
- '.github/workflows/mypy.yml' | |
pull_request: | |
paths: | |
- 'src/**' | |
- 'pyproject.toml' | |
- '.github/workflows/mypy.yml' | |
jobs: | |
mypy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
cache: 'pip' | |
- name: Install dependencies | |
run: pip install -r dev-requirements.txt -r eval-requirements.txt | |
- name: Check typing with MyPy | |
run: mypy src |