Skip to content

Add caching for pre-commit on CI #22

Add caching for pre-commit on CI

Add caching for pre-commit on CI #22

Workflow file for this run

name: PR Checks
on:
pull_request:
branches: ["main"]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: pipx install pre-commit
- name: Run commit checks
uses: ./.github/actions/pre-commit
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "pypy3.10"]
steps:
- uses: actions/checkout@v4
- run: pipx install poetry==1.7.1
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: poetry
- name: Install dependencies
run: poetry install --with=dev
- name: Run tests
run: ./scripts/test