api autodoc #37
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: type-checks | |
on: | |
- push | |
- pull_request | |
permissions: | |
contents: read | |
jobs: | |
build: | |
name: poetry run mypy type checker | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.11", "3.12"] | |
poetry-version: ["1.8.4"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Poetry | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install poetry==${{ matrix.poetry-version }} | |
poetry config virtualenvs.create true | |
poetry config virtualenvs.in-project false | |
poetry config virtualenvs.path .virtualenvs | |
- name: Install project | |
run: poetry install --with dev --no-interaction | |
- name: Type-check with poetry | |
run: poetry run mypy horao |