Skip to content

add pre-commit and apply style fixes (#81) #206

add pre-commit and apply style fixes (#81)

add pre-commit and apply style fixes (#81) #206

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@9f1fedda61294df4c004c05519a3fbf3b8e1f32f # v2.3.1
with:
envs: |
- name: Security audit
linux: bandit
- 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
- name: Python 3.13 (OSX)
macos: py313-test
posargs: -v
- name: Python 3.13 (Windows)
windows: py313-test
posargs: -v
- name: Python 3.13 (OSX)
macos: py313-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 }}