@@ -23,31 +23,21 @@ defaults:
23
23
shell : bash -l {0}
24
24
25
25
jobs :
26
- environment-config :
27
- runs-on : ubuntu-latest
28
- outputs :
29
- stable-python-version : ${{ steps.get-compatible-python.outputs.stable-python }}
30
- python-matrix : ${{ steps.get-compatible-python.outputs.python-versions }}
31
- steps :
32
- - uses : actions/setup-python@v5.3.0
33
- with :
34
- python-version : " 3.11"
35
-
36
- - id : get-compatible-python
37
- uses : MDAnalysis/mdanalysis-compatible-python@main
38
- with :
39
- release : " latest"
40
-
41
26
main-tests :
42
27
if : " github.repository == 'becksteinlab/basicrta'"
43
- needs : environment-config
44
28
runs-on : ${{ matrix.os }}
45
29
strategy :
46
30
fail-fast : false
47
31
matrix :
48
32
os : [macOS-latest, ubuntu-latest, windows-latest]
49
- python-version : ${{ fromJSON(needs.environment-config.outputs.python-matrix) }}
33
+ python-version : ["3.10", "3.11", "3.12"]
50
34
mdanalysis-version : ["latest", "develop"]
35
+ # Manually exclude any combinations of the test matrix that can't be run
36
+ exclude :
37
+ # The latest release of MDANalysis only supports up to Python 3.11
38
+ # so we exclude 3.12 from the test matrix (issue #20)
39
+ - python-version : " 3.12"
40
+ mdanalysis-version : " latest"
51
41
52
42
steps :
53
43
- uses : actions/checkout@v4
@@ -58,17 +48,15 @@ jobs:
58
48
df -h
59
49
ulimit -a
60
50
61
-
62
51
# More info on options: https://github.com/conda-incubator/setup-miniconda
63
52
- name : Install conda dependencies
64
53
uses : conda-incubator/setup-miniconda@v3
65
54
with :
66
55
python-version : ${{ matrix.python-version }}
67
56
environment-file : devtools/conda-envs/test_env.yaml
68
57
add-pip-as-python-dependency : true
69
- # architecture: x64
70
58
71
- miniforge-variant : Miniforge3
59
+ miniforge-variant : Mambaforge
72
60
use-mamba : true
73
61
channels : conda-forge, defaults
74
62
77
65
auto-activate-base : false
78
66
show-channel-urls : true
79
67
80
-
81
68
- name : Install MDAnalysis version
82
69
uses : MDAnalysis/install-mdanalysis@main
83
70
with :
@@ -100,23 +87,22 @@ jobs:
100
87
conda info
101
88
conda list
102
89
103
-
104
90
- name : Run tests
105
91
run : |
106
- pytest -n 2 -v --cov=basicrta --cov-report=xml --color=yes basicrta/tests/
92
+ pytest -n auto -v --cov=basicrta --cov-report=xml --color=yes basicrta/tests/
107
93
108
94
- name : codecov
109
95
if : github.repository == 'becksteinlab/basicrta' && github.event_name != 'schedule'
110
- uses : codecov/codecov-action@v3
96
+ uses : codecov/codecov-action@v4
111
97
with :
112
98
file : coverage.xml
113
99
name : codecov-${{ matrix.os }}-py${{ matrix.python-version }}
100
+ token : ${{ secrets.CODECOV_TOKEN }}
114
101
verbose : True
115
102
116
103
117
104
pylint_check :
118
105
if : " github.repository == 'becksteinlab/basicrta'"
119
- needs : environment-config
120
106
runs-on : ubuntu-latest
121
107
122
108
steps :
@@ -125,7 +111,7 @@ jobs:
125
111
- name : Set up Python
126
112
uses : actions/setup-python@v4
127
113
with :
128
- python-version : ${{ needs.environment-config.outputs.stable-python-version }}
114
+ python-version : " 3.11 "
129
115
130
116
- name : Install Pylint
131
117
run : |
@@ -137,21 +123,20 @@ jobs:
137
123
env :
138
124
PYLINTRC : .pylintrc
139
125
run : |
140
- pylint basicrta --exit-zero
126
+ pylint basicrta
141
127
142
128
143
129
pypi_check :
144
130
if : " github.repository == 'becksteinlab/basicrta'"
145
- needs : environment-config
146
131
runs-on : ubuntu-latest
147
132
148
133
steps :
149
134
- uses : actions/checkout@v4
150
135
151
- - name : Set up Python ${{ needs.environment-config.outputs.stable-python-version }}
136
+ - name : Set up Python
152
137
uses : actions/setup-python@v4
153
138
with :
154
- python-version : ${{ needs.environment-config.outputs.stable-python-version }}
139
+ python-version : " 3.11 "
155
140
156
141
- name : Install dependencies
157
142
run : |
0 commit comments