44 # 3 am Tuesdays and Fridays
55 - cron : " 0 3 * * 2,5"
66 workflow_dispatch :
7+ # Uncomment when you need to test on a PR
8+ pull_request :
9+ branches :
10+ - develop
11+
712
813concurrency :
914 # Probably overly cautious group naming.
2126 MPLBACKEND : agg
2227
2328jobs :
29+ # a pip only, minimal deps install w/ scipy & numpy nightly upstream wheels
2430 numpy_and_scipy_dev :
2531 if : " github.repository == 'MDAnalysis/mdanalysis'"
2632 runs-on : ubuntu-latest
@@ -34,45 +40,51 @@ jobs:
3440 with :
3541 os-type : " ubuntu"
3642
37- - name : setup_micromamba
38- uses : mamba-org/setup-micromamba@v1
39- with :
40- environment-name : mda
41- create-args : >-
42- python=3.11
43- pip
44- # using jaime's shim to avoid pulling down the cudatoolkit
45- condarc : |
46- channels:
47- - jaimergp/label/unsupported-cudatoolkit-shim
48- - conda-forge
49- - bioconda
50-
51- - name : install_deps
52- uses : ./.github/actions/setup-deps
43+ - uses : actions/setup-python@v4
5344 with :
54- micromamba : true
55- full-deps : true
45+ python-version : ${{ matrix.python-version }}
5646
57- # overwrite installs by picking up nightly wheels
47+ # minimally install nightly wheels & core deps
5848 - name : nightly_wheels
5949 run : |
60- pip install --pre -U -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple scipy numpy networkx matplotlib pandas
50+ # Nightlies: add in networkx and matplotlib because we can
51+ python -m pip install --pre -U --extra-index https://pypi.anaconda.org/scientific-python-nightly-wheels/simple \
52+ scipy \
53+ numpy \
54+ networkx \
55+ matplotlib \
56+ # Base deps
57+ python -m pip install \
58+ "cython>=0.28" \
59+ packaging \
60+ "setuptools>69.4" \
61+ wheel \
62+ "griddataformats>=0.4.0" \
63+ "mmtf-python>=1.0" \
64+ "joblib>=0.12" \
65+ "tqdm>=4.43.0" \
66+ threadpoolctl \
67+ fasteners \
68+ mda-xdrlib \
69+ pytest \
70+ pytest-xdist \
71+ pytest-timeout
72+ # deps that depend on MDA
73+ python -m pip install --no-deps \
74+ waterdynamics \
75+ pathsimanalysis \
76+ mdahole2
77+
78+ - name : pre_install_list_deps
79+ run : python -m pip list
6180
62- - name : list_deps
81+ - name : build_srcs
6382 run : |
64- micromamba list
65- pip list
83+ python -m pip install --no-build-isolation -v -e ./package
84+ python -m pip install --no-build-isolation -v -e ./testsuite
6685
67- # Intentionally going with setup.py builds so we can build with latest
68- - name : build_srcs
69- uses : ./.github/actions/build-src
70- with :
71- build-tests : true
72- build-docs : false
73- # We don't use build isolation because we want to ensure that we
74- # test building with brand new versions of NumPy here.
75- isolation : false
86+ - name : post_install_list_deps
87+ run : python -m pip list
7688
7789 - name : run_tests
7890 run : |
@@ -136,7 +148,7 @@ jobs:
136148 strategy :
137149 fail-fast : false
138150 matrix :
139- os : [ubuntu-20.04, macos-11 ]
151+ os : [ubuntu-20.04, macos-12 ]
140152
141153 steps :
142154 - uses : actions/checkout@v4
@@ -151,7 +163,7 @@ jobs:
151163 with :
152164 environment-name : mda
153165 create-args : >-
154- python=3.9
166+ python=3.10
155167 pip
156168 condarc : |
157169 channels:
@@ -210,6 +222,9 @@ jobs:
210222 run : |
211223 pip install pytest-xdist pytest-timeout
212224
225+ - name : check env
226+ run : pip list
227+
213228 - name : run_tests
214229 run : |
215230 pytest --timeout=200 -n auto testsuite/MDAnalysisTests --disable-pytest-warnings --durations=50
@@ -218,12 +233,14 @@ jobs:
218233 conda-latest-release :
219234 # A set of runner to check that the latest conda release works as expected
220235 if : " github.repository == 'MDAnalysis/mdanalysis'"
221- runs-on : ${{ matrix.os }}-latest
236+ runs-on : ${{ matrix.os }}
222237 timeout-minutes : 60
223238 strategy :
224239 fail-fast : false
225240 matrix :
226- os : [ubuntu, macos]
241+ # Stick to macos-13 because some of our
242+ # optional depss don't support arm64 (i.e. macos-14)
243+ os : [ubuntu-latest, macos-13]
227244 python-version : ["3.9", "3.10", "3.11", "3.12"]
228245 steps :
229246 - uses : actions/checkout@v4
@@ -247,16 +264,16 @@ jobs:
247264 - conda-forge
248265 - bioconda
249266
267+ - name : install_mdanalysis
268+ run : |
269+ micromamba install mdanalysis mdanalysistests
270+
250271 - name : install_deps
251272 uses : ./.github/actions/setup-deps
252273 with :
253274 micromamba : true
254275 full-deps : true
255276
256- - name : install_mdanalysis
257- run : |
258- micromamba install mdanalysis mdanalysistests
259-
260277 - name : run_tests
261278 run : |
262279 pytest --timeout=200 -n auto --pyargs MDAnalysisTests
0 commit comments