Skip to content

add pre-commit and apply style fixes #198

add pre-commit and apply style fixes

add pre-commit and apply style fixes #198

Workflow file for this run

name: CI
on:
push:
branches:
- main
- 'v*'
tags:
- '*'
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@d9b81a07e789d1b1921ab5fe33de2ddcbbd02c3f # v2.3.0
with:
envs: |
- name: Security audit
linux: bandit
- name: PEP 8
linux: codestyle
- name: Python 3.9 (Linux)
linux: py39-test
posargs: -v
- name: Python 3.9 (Linux; numpy 1.22)
linux: py39-test-numpy122
posargs: -v
- name: Python 3.9 (Linux; numpy 1.25)
linux: py39-test-numpy122
posargs: -v
- name: Python 3.10 (Linux)
linux: py310-test
posargs: -v
- name: Python 3.11 (Windows)
windows: py311-test
posargs: -v
- name: Python 3.11 (OSX)
macos: py311-test
posargs: -v
- name: Python 3.12 (Windows)
windows: py312-test
posargs: -v
- name: Python 3.12 (OSX)
macos: py312-test
posargs: -v
# `tox` does not currently respect `requires-python` versions when creating testing environments;
# if this breaks, add an upper pin to `requires-python` and revert this py3 to the latest working version
- name: Python 3 (Linux) with coverage
linux: py3-test-cov
posargs: -v
coverage: codecov
pytest-results-summary: true
- name: Python 3 (Linux with dev dependencies)
linux: py3-test-devdeps
posargs: -v
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}