Bump the all-dependencies group across 1 directory with 41 updates #115
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-check | |
on: | |
push: | |
branches: | |
- "**" | |
tags-ignore: | |
- "*.*" | |
pull_request: | |
types: [opened, reopened] | |
jobs: | |
type_check: | |
strategy: | |
matrix: | |
check: ["ruff check", "mypy --check", "ruff format --check"] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12.2" | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-create: true | |
virtualenvs-in-project: false | |
virtualenvs-path: /opt/venv | |
- name: Load cached venv | |
id: cached-poetry-dependencies | |
uses: actions/cache@v4 | |
with: | |
path: /opt/venv | |
key: venv-${{ runner.os }}-python-3.12.2-${{ hashFiles('poetry.lock') }} | |
- name: Install dependencies and actiavte virtualenv | |
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | |
run: | | |
poetry install --no-interaction --no-root | |
- name: Run ${{ matrix.check }} | |
run: | | |
poetry run ${{ matrix.check }} . |