Add PR CI workflow #1
Workflow file for this run
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: PR Checks | |
on: | |
pull_request: | |
branches: ["main"] | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
cache: poetry | |
- name: Install dependencies | |
shell: bash | |
run: | | |
pip install --user pipx | |
pipx install poetry==1.7.1 | |
poetry install --with=dev | |
- name: Run commit checks | |
run: poetry run pre-commit run -a | |
- name: Run tests | |
run: ./scripts/test |