1+ # This workflow runs the repo's CI tests.
12name : tests
23
34on :
@@ -16,42 +17,29 @@ jobs:
1617 fail-fast : false
1718 matrix :
1819 os : [ubuntu-latest]
19- python-version : ['3.8', '3.9', '3.10']
20+ python-version : ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13' ]
2021
2122 defaults :
2223 run :
23- shell : bash -l {0}
24+ shell : bash -elo pipefail {0}
2425
2526 steps :
26-
2727 - name : Checkout repo
28- uses : actions/checkout@v2
29- with :
30- fetch-depth : 2
31-
32- - name : Cache conda
33- uses : actions/cache@v2
34- env :
35- CACHE_NUMBER : 0
36- with :
37- path : ~/conda_pkgs_dir
38- key : ${{ runner.os }}-python-${{ matrix.python-version }}-${{ env.CACHE_NUMBER }}-${{ hashFiles('tests/environment-dev.yml') }}
28+ uses : actions/checkout@v4
3929
40- - name : Setup conda environment
41- uses : conda-incubator /setup-miniconda @v2
30+ - name : Create environment with Micromamba
31+ uses : mamba-org /setup-micromamba @v2
4232 with :
43- python-version : ${{ matrix.python-version }}
44- use-only-tar-bz2 : true # required for caching
45- show-channel-urls : true
46- channel-priority : strict
47- activate-environment : pynamical-dev
33+ cache-environment : true
34+ create-args : python=${{ matrix.python-version }}
4835 environment-file : tests/environment-dev.yml
4936
5037 - name : Install pynamical
5138 run : |
52- python setup.py install
53- conda list
54- conda info --all
39+ python -m pip install .
40+ python -m pip check
41+ micromamba list
42+ python -m pip show pynamical
5543
5644 - name : Lint code
5745 run : |
0 commit comments