--- #5
Workflow file for this run
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: CI | |
on: | |
push: | |
paths-ignore: | |
- '**.md' | |
- '**.rst' | |
- 'util/*' | |
pull_request: | |
jobs: | |
test: | |
name: Lint and test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python_version: [3.8, 3.11] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python_version }} | |
- uses: snok/install-poetry@v1 | |
with: | |
installer-parallel: true | |
- name: Install dependencies | |
run: poetry install --no-interaction | |
- name: Lint code | |
run: poetry run make lint | |
- name: Check types using MyPy | |
run: | | |
poetry run make install-types | |
poetry run make types | |
- name: Run pytest | |
run: poetry run make test |