working through updates #15
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: Linters and Tests | |
on: | |
# trigger on pull requests | |
pull_request: | |
# trigger on merges into main (in case PRs are not required) | |
push: | |
branches: | |
- main | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12.x" | |
cache: "pip" | |
- name: Run linter | |
uses: pre-commit/[email protected] | |
env: | |
SKIP: no-commit-to-branch |