Lint & Test #2
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: "Lint and Test" | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
lint_test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout repository" | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: "Setup PDM" | |
uses: pdm-project/setup-pdm@c050bdcb2405837648035b6678c75609d53a749f # v4 | |
with: | |
python-version: "3.11" | |
cache: true | |
- name: "Install dependencies" | |
run: pdm sync --dev | |
- name: "Run precommit" | |
run: pdm pre-commit | |
- name: "Run tests" | |
run: pdm test |