Add pre-commit hooks #5
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
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Install dependencies | |
run: pip install pre-commit poetry | |
- name: Run pre-commit checks | |
run: pre-commit run --all-files | |
tox: | |
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1 | |
with: | |
coverage: 'codecov' | |
envs: | | |
- linux: py38 | |
- linux: py39 | |
- linux: py310 | |
- linux: py311 | |
- linux: py312 | |
- macos: py38 | |
- macos: py39 | |
- macos: py310 | |
- macos: py311 | |
- macos: py312 | |
- windows: py38 | |
- windows: py39 | |
- windows: py310 | |
- windows: py311 | |
- windows: py312 |