forked from PlasmaPy/PlasmaPy
-
Notifications
You must be signed in to change notification settings - Fork 0
139 lines (107 loc) · 3.65 KB
/
weekly-tests.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
name: weekly tests
on:
schedule:
- cron: 37 7 * * 1
workflow_dispatch:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
tests:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: Python 3.12, with doctests, all tests, macOS
os: macos-latest
python: '3.12'
toxenv: py312-pins-pytest_doctests_all
- name: Python 3.11, all tests, Ubuntu
os: ubuntu-latest
python: '3.11'
toxenv: py311-pins-pytest_all
- name: Python 3.11, all tests, code coverage, macOS
os: macos-latest
python: '3.11'
toxenv: py311-pins-pytest_cov_all
- name: Python 3.10, all tests, Windows
os: windows-latest
python: '3.10'
toxenv: py310-pins-pytest_all
- name: Python 3.10, lowest direct dependencies, all tests, macOS
os: macos-latest
python: '3.10'
toxenv: py310-lowest_direct-pytest_all
- name: Python 3.12, with Astropy dev, all tests, Ubuntu
os: ubuntu-latest
python: '3.12'
toxenv: py312-pytest_all-astropydev
- name: Python 3.12, with matplotlib dev, all tests, Ubuntu
os: ubuntu-latest
python: '3.12'
toxenv: py312-pytest_all-matplotlibdev
- name: Python 3.12, with NumPy dev, all tests, Ubuntu
os: ubuntu-latest
python: '3.12'
toxenv: py312-pytest_all-numpydev
- name: Python 3.12, with NumPy dev, all tests, Windows
os: windows-latest
python: '3.12'
toxenv: py312-pytest_all-numpydev
- name: Python 3.12, all tests, xarray dev, Ubuntu
os: ubuntu-latest
python: '3.12'
toxenv: py312-pytest_all-xarraydev
- name: Documentation, with Sphinx dev, Python 3.12, Ubuntu
os: ubuntu-latest
python: '3.12'
toxenv: build_docs-sphinxdev
toxposargs: -q
- name: Import PlasmaPy, Python 3.10, Windows
os: windows-latest
python: '3.10'
toxenv: py310-lowest_direct-pypi-import
- name: Import PlasmaPy, Python 3.11, macOS
os: macos-latest
python: '3.11'
toxenv: py311-lowest_direct-pypi-import
- name: Import PlasmaPy, Python 3.12, Ubuntu
os: ubuntu-latest
python: '3.12'
toxenv: py312-lowest_direct-pypi-import
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: pip
- name: Install tox and its extensions
run: python -m pip install --upgrade tox tox-uv
- name: Install graphviz & pandoc
if: startsWith(matrix.name, 'Documentation')
run: sudo apt-get install graphviz pandoc
- name: Run tests
run: tox ${{ matrix.toxargs }} -e ${{ matrix.toxenv }} -- ${{ matrix.toxposargs }}
- name: Upload coverage to codecov
if: ${{ contains(matrix.toxenv,'_cov') }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
install-plasmapy-via-conda-forge:
name: Install PlasmaPy from conda-forge
runs-on: ubuntu-latest
steps:
- name: Set up miniconda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: '3.10'
- name: Use conda to install PlasmaPy from conda-forge
run: conda install -c conda-forge --yes plasmapy