forked from PlasmaPy/PlasmaPy
-
Notifications
You must be signed in to change notification settings - Fork 0
199 lines (158 loc) · 5.67 KB
/
weekly.yml
File metadata and controls
199 lines (158 loc) · 5.67 KB
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
name: weekly tests
on:
schedule:
- cron: 37 7 * * 1
workflow_dispatch:
pull_request:
types: [labeled, opened, synchronize, reopened]
branches:
- main
permissions: {}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
weekly:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
if: >-
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'run weekly tests in CI')) ||
(github.event_name == 'schedule' && github.repository == 'PlasmaPy/PlasmaPy' && github.ref == 'refs/heads/main')
strategy:
fail-fast: false
matrix:
include:
- name: Tests, Python 3.13, doctests, macOS
os: macos-latest
python: '3.13'
nox_session: tests-3.13(all)
- name: Tests, Python 3.12, with code coverage, Windows
os: windows-latest
python: '3.12'
nox_session: tests-3.12(cov)
- name: Tests, Python 3.11, Ubuntu
os: ubuntu-latest
python: '3.11'
nox_session: tests-3.11(all)
- name: Tests, Python 3.11, lowest direct dependencies, Ubuntu
os: ubuntu-latest
python: '3.11'
nox_session: tests-3.11(lowest-direct)
- name: Tests, Python 3.13, astropy-dev, Ubuntu
os: ubuntu-latest
python: '3.13'
nox_session: run_tests_with_dev_version_of(astropy)
- name: Tests, Python 3.13, numpy-dev, Ubuntu
os: ubuntu-latest
python: '3.13'
nox_session: run_tests_with_dev_version_of(numpy)
- name: Tests, Python 3.13, xarray-dev, Ubuntu
os: ubuntu-latest
python: '3.13'
nox_session: run_tests_with_dev_version_of(xarray)
- name: Tests, Python 3.13, pandas-dev, Ubuntu
os: ubuntu-latest
python: '3.13'
nox_session: run_tests_with_dev_version_of(pandas)
- name: Tests, Python 3.13, lmfit-dev, Ubuntu
os: ubuntu-latest
python: '3.13'
nox_session: run_tests_with_dev_version_of(lmfit)
- name: Documentation, Python 3.12, Ubuntu
os: ubuntu-latest
python: '3.12'
nox_session: docs
- name: Documentation, Python 3.12, sphinx-dev, Ubuntu
os: ubuntu-latest
python: '3.12'
nox_session: build_docs_with_dev_version_of(sphinx)
- name: Documentation, Python 3.12, sphinx_rtd_theme-dev, Ubuntu
os: ubuntu-latest
python: '3.12'
nox_session: build_docs_with_dev_version_of(sphinx_rtd_theme)
- name: Documentation, Python 3.12, nbsphinx-dev, Ubuntu
os: ubuntu-latest
python: '3.12'
nox_session: build_docs_with_dev_version_of(nbsphinx)
- name: Documentation, Python 3.12, plasmapy_sphinx-dev, Ubuntu
os: ubuntu-latest
python: '3.12'
nox_session: build_docs_with_dev_version_of(plasmapy_sphinx)
- name: Static type checking with mypy, Python 3.13, Windows
os: windows-latest
python: '3.13'
nox_session: mypy
- name: Packaging, Python 3.13, Windows
os: windows-latest
python: '3.13'
nox_session: build
- name: Packaging, Python 3.12, Ubuntu
os: ubuntu-latest
python: '3.12'
nox_session: build
- name: Packaging, Python 3.11, macOS
os: macos-latest
python: '3.11'
nox_session: build
- name: Import PlasmaPy, Python 3.13, macOS
os: macos-latest
python: '3.13'
nox_session: import
- name: Import PlasmaPy, Python 3.12, Ubuntu
os: ubuntu-latest
python: '3.12'
nox_session: import
- name: Import PlasmaPy, Python 3.11, Windows
os: windows-latest
python: '3.11'
nox_session: import
- name: Check MANIFEST.in
os: ubuntu-latest
python: '3.13'
nox_session: manifest
- name: Lint
os: ubuntu-latest
python: '3.13'
nox_session: lint
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install Graphviz for doc builds
if: contains(matrix.nox_session, 'docs')
uses: ts-graphviz/setup-graphviz@v2
- name: Install pandoc for doc builds
# This step requires Ubuntu
if: contains(matrix.nox_session, 'docs')
run: |
sudo apt update
sudo apt-get install -y pandoc
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
python-version: ${{ matrix.python }}
enable-cache: true
cache-suffix: ${{ matrix.nox_session }}-${{ matrix.python }}-${{ runner.os }}
- name: Run Nox session
run: uv run --with nox nox -s '${{ matrix.nox_session }}'
- name: Upload coverage reports to Codecov
if: ${{ contains(matrix.nox_session, 'cov') }}
uses: codecov/codecov-action@v5
with:
file: ./coverage.xml
fail_ci_if_error: false
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
install-via-conda-forge:
name: Install PlasmaPy from conda-forge
runs-on: ubuntu-latest
if: (github.repository == 'PlasmaPy/PlasmaPy' && github.ref == 'refs/heads/main' && github.event_name != 'pull_request') || github.event_name == 'workflow_dispatch'
steps:
- name: Set up miniconda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: '3.11'
- name: Use conda to install PlasmaPy from conda-forge
run: conda install -c conda-forge --yes plasmapy