Skip to content

more

more #20

Workflow file for this run

---
name: Type Check (Mypy)
on:
push:
branches:
- main
- test
jobs:
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Run image
uses: abatilo/actions-poetry@v2
- name: Configure Poetry to install dependencies in virtualenv
run: |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- name: Define a cache for the virtual environment based on the dependencies lock file
uses: actions/cache@v4
with:
path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }}
- name: Install dependencies
run: poetry install --without dev
- name: Check types with mypy
run: .venv/bin/mypy