Skip to content

Add caching for pre-commit on CI #20

Add caching for pre-commit on CI

Add caching for pre-commit on CI #20

Workflow file for this run

name: PR Checks
on:
pull_request:
branches: ["main"]
jobs:
check:
runs-on: ubuntu-latest
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 commit checks
uses: ./.github/actions/pre-commit
- name: Run tests
run: ./scripts/test