| 1 | name: CI |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: |
| 6 | - main |
| 7 | - '*.x' |
| 8 | tags: |
| 9 | - "*" |
| 10 | pull_request: |
| 11 | schedule: |
| 12 | - cron: '0 6 * * 1' |
| 13 | |
| 14 | concurrency: |
| 15 | group: ${{ github.workflow }}-${{ github.ref }} |
| 16 | cancel-in-progress: true |
| 17 | |
| 18 | jobs: |
| 19 | test: |
| 20 | uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v2 |
| 21 | with: |
| 22 | envs: | |
| 23 | - linux: check-style |
| 24 | - linux: check-security |
| 25 | - linux: py310-xdist |
| 26 | - linux: py311-xdist |
| 27 | - linux: py312-xdist |
| 28 | - linux: py313-xdist |
| 29 | # `tox` does not currently respect `requires-python` versions when creating testing environments; |
| 30 | # if this breaks, add an upper pin to `requires-python` and revert this py3 to the latest working version |
| 31 | - linux: py3-cov-xdist |
| 32 | coverage: codecov |
| 33 | - macos: py3-xdist |
| 34 | python-version: '>=3.13.5 <3.14' |
| 35 | - windows: py3-xdist |
| 36 | # exclude Python 1.13.4, see https://github.com/python/cpython/issues/135151 |
| 37 | python-version: '>=3.13.5 <3.14' |
| 38 | - linux: py3-devdeps-xdist |
| 39 | toxdeps: tox-uv |
| 40 | secrets: |
| 41 | CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |