Skip to content

Add pre-commit hooks #4

Add pre-commit hooks

Add pre-commit hooks #4

Workflow file for this run

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