Debian Codegraph @

.github/workflows/main.yml

raw
1 name: CI Tests
2
3 on:
4 push:
5 branches:
6 - main
7 tags:
8 - '*'
9 pull_request:
10
11 jobs:
12 initial_checks:
13 # Mandatory checks before CI tests
14 uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v2
15 with:
16 coverage: false
17 envs: |
18 # Code style
19 - linux: codestyle
20
21 tests:
22 needs: initial_checks
23 uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v2
24 with:
25 coverage: codecov
26 envs: |
27 - macos: py311-test
28 - macos: py312-test
29
30 - linux: py311-test-oldestdeps
31 - linux: py311-test
32 - linux: py312-test-devdeps
33
34 - windows: py311-test-oldestdeps
35 - windows: py311-test
36 - windows: py312-test
37
38 - macos: build_docs
39 - linux: build_docs
40 - macos: build_docs
41
42 publish:
43 needs: tests
44 uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@v2
45 with:
46 test_extras: 'test'
47 test_command: pytest --pyargs aplpy
48 secrets:
49 pypi_token: ${{ secrets.pypi_token }}