-
Notifications
You must be signed in to change notification settings - Fork 9
145 lines (122 loc) · 3.84 KB
/
sphinx_asdf_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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
name: CI
on:
push:
branches:
- main
tags:
- "*"
pull_request:
branches:
# Only cancel in-progress jobs or runs for the current workflow
# This cancels the already triggered workflows for a specific PR without canceling
# other instances of this workflow (other PRs, scheduled triggers, etc) when something
# within that PR re-triggers this CI
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
tox_pytest:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- name: Python 3.12 Tests
python-version: "3.12-dev"
os: ubuntu-latest
toxenv: py312
- name: Python 3.11 Tests
python-version: "3.11"
os: ubuntu-latest
toxenv: py311
- name: Python 3.10 Tests
python-version: "3.10"
os: ubuntu-latest
toxenv: py310
- name: Python 3.9, with Code Coverage
python-version: "3.9"
os: ubuntu-latest
toxenv: coverage
- name: Python 3.9, Windows
python-version: "3.9"
os: windows-latest
toxenv: py39
- name: Python 3.9, MacOS
python-version: "3.9"
os: macos-latest
toxenv: py39
- name: Twine
python-version: "3.9"
os: ubuntu-latest
toxenv: twine
- name: Document Checks
python-version: "3.9"
os: ubuntu-latest
toxenv: checkdocs
- name: Code Style Checks
python-version: "3.9"
os: ubuntu-latest
toxenv: style
- name: ASDF Standard Document Build
python-version: "3.9"
os: ubuntu-latest
toxenv: asdf-standard
- name: ASDF Document Build
python-version: "3.9"
os: ubuntu-latest
toxenv: asdf
- name: ASDF-transform-schemas Document Build
python-version: "3.9"
os: ubuntu-latest
toxenv: asdf-transform-schemas
- name: ASDF-coordinates-schemas Document Build
python-version: "3.9"
os: ubuntu-latest
toxenv: asdf-coordinates-schemas
- name: ASDF-wcs-schemas Document Build
python-version: "3.9"
os: ubuntu-latest
toxenv: asdf-wcs-schemas
- name: ASDF-astropy Document Build
python-version: "3.9"
os: ubuntu-latest
toxenv: asdf-astropy
- name: rad Document Build
python-version: "3.9"
os: ubuntu-latest
toxenv: rad
- name: roman_datamodels Document Build
python-version: "3.11"
os: ubuntu-latest
toxenv: roman_datamodels
- name: romancal Document Build
python-version: "3.11"
os: ubuntu-latest
toxenv: romancal
- name: stdatamodels Document Build
python-version: "3.10"
os: ubuntu-latest
toxenv: stdatamodels
- name: jwst Document Build
python-version: "3.11"
os: ubuntu-latest
toxenv: jwst
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install tox
run: |
python -m pip install tox
- name: Run tox
run: tox -e ${{ matrix.toxenv }}
- name: Upload Code Coverage
if: ${{ contains(matrix.toxenv,'coverage') }}
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml