Fix type checker errors #81
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] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
name: lint | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Install poetry | |
run: pip install poetry | |
- name: Install project dependencies | |
run: poetry install --no-ansi --with=dev | |
- name: Lint | |
run: poetry run lint | |
- name: Check format | |
run: poetry run format_check | |
- name: Type checker | |
run: poetry run pyright | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11", "3.12"] | |
env: | |
PYTHON_VERSION: ${{ matrix.python-version }} | |
name: test | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Log in to GitHub Container Registry | |
run: echo "${{ secrets.PACKAGE_ACCESS_TOKEN }}" | docker login ghcr.io -u USERNAME --password-stdin | |
- name: Run tests | |
run: docker compose -f docker-compose-test.yaml up test --exit-code-from test | |
- name: Tear down test containers | |
run: docker compose -f docker-compose-test.yaml down |