-
-
Notifications
You must be signed in to change notification settings - Fork 14
115 lines (106 loc) · 3.38 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
name: CI
on:
workflow_dispatch:
schedule:
# Run every Monday at 6am UTC
- cron: '0 6 * * 1'
push:
branches:
- main
- '*.x'
tags:
- "*"
pull_request:
permissions:
contents: read
jobs:
setup:
runs-on: ubuntu-latest
outputs:
requirements-hash: ${{ steps.requirements-hash.outputs.hash }}
steps:
- uses: actions/checkout@v3
- id: requirements-hash
run: echo "::set-output name=hash::${{ hashFiles('**/pyproject.toml', '**/setup.*', 'tox.ini') }}"
core:
needs: [setup]
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
with:
cache-path: ~/.cache/pip
cache-key: pip-${{ needs.setup.outputs.requirements-hash }}
cache-restore-keys: |
pip-
# Any env name which does not start with `pyXY` will use this Python version.
default_python: '3.9'
envs: |
- linux: py39-parallel-cov
- linux: py311-test-devdeps-parallel-cov
- linux: py312-test-predeps-parallel-cov
coverage: codecov
asdf-schemas:
needs: [setup]
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
with:
cache-path: ~/.cache/pip
cache-key: pip-${{ needs.setup.outputs.requirements-hash }}
cache-restore-keys: |
pip-
default_python: '3.10'
envs: |
- linux: asdf
- linux: asdf-standard
- linux: asdf-transform-schemas
- linux: asdf-coordinates-schemas
test:
needs: [core, asdf-schemas]
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
with:
cache-path: ~/.cache/pip
cache-key: pip-${{ needs.setup.outputs.requirements-hash }}
cache-restore-keys: |
pip-
# Any env name which does not start with `pyXY` will use this Python version.
default_python: '3.10'
envs: |
- linux: py310-test-parallel
- linux: py311-test-parallel
- linux: py312-test-parallel
- macos: py311-test-parallel
- windows: py311-test-parallel
dev:
needs: [core, asdf-schemas]
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
with:
cache-path: ~/.cache/pip
cache-key: pip-${{ needs.setup.outputs.requirements-hash }}
cache-restore-keys: |
pip-
# Any env name which does not start with `pyXY` will use this Python version.
default_python: '3.9'
envs: |
- linux: py310-test-devdeps-parallel
- linux: py311-test-devdeps-parallel
- linux: py311-test-devdeps-numpydev-parallel
oldest:
needs: [core, asdf-schemas]
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
with:
cache-path: ~/.cache/pip
cache-key: pip-${{ needs.setup.outputs.requirements-hash }}
cache-restore-keys: |
pip-
# Any env name which does not start with `pyXY` will use this Python version.
default_python: '3.9'
envs: |
- linux: py39-test-oldestdep-parallels-cov
coverage: codecov
wheel_building:
permissions:
contents: none
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@v1
if: (github.event_name == 'push' || github.event_name == 'pull_request')
with:
upload_to_pypi: false
upload_to_anaconda: false
test_extras: test
test_command: pytest --pyargs asdf_astropy