Various tweaks #26
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: Tests | |
on: | |
push: | |
branches: | |
- "*" | |
pull_request: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python: ["3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install Poetry | |
run: pip install poetry | |
- name: Use in-project virtualenv | |
run: poetry config virtualenvs.in-project true | |
- uses: actions/cache@v2 | |
with: | |
path: .venv/ | |
key: ${{ runner.os }}-${{ matrix.python }}-pip-${{ hashFiles('poetry.lock') }}-${{ hashFiles('pyproject.toml') }} | |
- name: Install dependencies | |
run: poetry install | |
- name: Check Format | |
run: make format-check | |
- name: Lint | |
run: make lint | |
- name: Static type checking | |
run: make type |