Update project and package versions #111
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: | |
branches: | |
- 'master' | |
pull_request: | |
jobs: | |
lint: | |
name: Lint | |
runs-on: [self-hosted, small] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Poetry | |
run: pipx install poetry==$(head -n 1 .poetry-version) | |
- uses: actions/setup-python@v5 | |
with: | |
python-version-file: '.python-version' | |
cache: 'poetry' | |
- name: Install dependencies | |
run: poetry install --only main,dev --no-interaction --no-ansi --no-cache | |
- name: Lint | |
run: poetry run ruff check --fix --unsafe-fixes --preview . | |
type_checking: | |
name: Static type checking | |
runs-on: [self-hosted, small] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Poetry | |
run: pipx install poetry==$(head -n 1 .poetry-version) | |
- uses: actions/setup-python@v5 | |
with: | |
python-version-file: '.python-version' | |
cache: 'poetry' | |
- name: Install dependencies | |
run: poetry install --only main,dev --no-interaction --no-ansi --no-cache | |
- name: Mypy | |
run: poetry run mypy . |