@@ -16,7 +16,7 @@ defaults:
1616 shell : bash -l {0}
1717
1818env :
19- CONDA_DEPS : " 'MDAnalysis' MDAnalysisTests numpy ' scipy<1.8' pytest pytest-cov codecov"
19+ CONDA_DEPS : " 'MDAnalysis' MDAnalysisTests numpy scipy pytest pytest-xdist pytest-cov codecov"
2020
2121jobs :
2222 tests :
@@ -25,49 +25,54 @@ jobs:
2525 fail-fast : false
2626 matrix :
2727 os : [ubuntu-latest, macOS-latest]
28- python-version : ["3.8", "3.9", "3.10"]
29-
28+ python-version : ["3.11", "3.12", "3.13"]
3029 env :
3130 CYTHON_TRACE_NOGIL : 1
3231 MPLBACKEND : agg
3332 GH_OS : ${{ matrix.os }}
3433
3534 steps :
36- - uses : actions/checkout@v2
35+ - uses : actions/checkout@v5
36+ with :
37+ fetch-depth : 0
3738
38- - name : setup_miniconda
39- uses : conda-incubator /setup-miniconda @v2
39+ - name : " Setup Micromamba "
40+ uses : mamba-org /setup-micromamba @v2
4041 with :
41- python-version : ${{ matrix.python-version }}
42- auto-update-conda : true
43- channels : conda-forge
44- add-pip-as-python-dependency : true
45- mamba-version : " *"
46- architecture : x64
42+ environment-file : environment.yaml
43+ environment-name : mdrg
44+ create-args : >-
45+ python=${{ matrix.python-version }}
46+ init-shell : bash
4747
4848 - name : install_deps
4949 run : |
50- mamba install ${{ env.CONDA_DEPS }}
50+ micromamba install ${{ env.CONDA_DEPS }}
5151
5252 - name : check_setup
5353 run : |
5454 echo ${GH_OS}
5555 which python
5656 which conda
5757 which pip
58- conda info
58+ micromamba list
5959
6060 - name : install_mdrg
6161 run : |
62- python setup.py develop --no-deps
62+ python -m pip install . --no-deps
63+
64+ - name : version
65+ run : |
66+ python -Ic "import MDRestraintsGenerator; print(MDRestraintsGenerator.__version__)"
6367
6468 - name : run_tests
6569 run : |
66- pytest -v --cov=MDRestraintsGenerator --cov-report=xml MDRestraintsGenerator/tests/
70+ pytest -n auto - v --cov=MDRestraintsGenerator --cov-report=xml MDRestraintsGenerator/tests/
6771
6872 - name : codecov
69- uses : codecov/codecov-action@v1
73+ uses : codecov/codecov-action@v5
7074 with :
7175 file : coverage.xml
76+ token : ${{ secrets.CODECOV_TOKEN }}
7277 fail_ci_if_error : True
7378 verbose : True
0 commit comments