@@ -8,6 +8,9 @@ concurrency:
88 group : ${{ github.workflow }}-${{ github.ref }}
99 cancel-in-progress : true
1010
11+ permissions :
12+ contents : read
13+
1114jobs :
1215 detect-ci-trigger :
1316 name : detect ci trigger
1720 steps :
1821 - uses : actions/checkout@v4
1922 with :
20- persist-credentials : false
2123 fetch-depth : 2
22- -
uses :
xarray-contrib/[email protected] 24+ persist-credentials : false
25+ - uses : xarray-contrib/ci-trigger@v1
2326 id : detect-trigger
2427 with :
2528 keyword : " [skip-ci]"
@@ -35,13 +38,13 @@ jobs:
3538 strategy :
3639 fail-fast : false
3740 matrix :
38- python-version : ["3.9", "3.10", "3.11", "3.12", "3.13"]
41+ python-version : [ "3.9", "3.10", "3.11", "3.12", "3.13" ]
3942 steps :
4043 - uses : actions/checkout@v4
4144 with :
4245 persist-credentials : false
4346 - name : Set up conda (micromamba)
44- uses : mamba-org/setup-micromamba@v2.0.4
47+ uses : mamba-org/setup-micromamba@v2
4548 with :
4649 cache-downloads : true
4750 cache-environment : true
@@ -52,14 +55,14 @@ jobs:
5255 run : |
5356 pytest -n 4 --cov=xskillscore --cov-report=xml --verbose
5457 - name : Upload coverage to codecov
55- uses : codecov/codecov-action@v1.5.2
58+ uses : codecov/codecov-action@v5
5659 with :
5760 token : ${{ secrets.CODECOV_TOKEN }}
58- file : ./coverage.xml
61+ files : ./coverage.xml
5962 fail_ci_if_error : false
6063
6164 doctest : # Tests all docstrings
62- name : Doctests
65+ name : Doctests (Python ${{ matrix.python-version }})
6366 runs-on : ubuntu-latest
6467 needs : detect-ci-trigger
6568 if : needs.detect-ci-trigger.outputs.triggered == 'false'
@@ -69,13 +72,13 @@ jobs:
6972 strategy :
7073 fail-fast : false
7174 matrix :
72- python-version : [ "3.9", "3. 13" ]
75+ python-version : [ "3.13" ]
7376 steps :
7477 - uses : actions/checkout@v4
7578 with :
7679 persist-credentials : false
7780 - name : Set up conda (micromamba)
78- uses : mamba-org/setup-micromamba@v2.0.4
81+ uses : mamba-org/setup-micromamba@v2
7982 with :
8083 cache-downloads : true
8184 cache-environment : true
9093 python -m pytest --doctest-modules xskillscore --ignore xskillscore/tests
9194
9295 docs_notebooks : # Checks that pre-compiled notebooks in docs still work.
96+ name : Test notebooks in docs (Python ${{ matrix.python-version }})
9397 runs-on : ubuntu-latest
9498 needs : detect-ci-trigger
9599 if : needs.detect-ci-trigger.outputs.triggered == 'false'
@@ -104,7 +108,7 @@ jobs:
104108 with :
105109 persist-credentials : false
106110 - name : Set up conda (micromamba)
107- uses : mamba-org/setup-micromamba@v2.0.4
111+ uses : mamba-org/setup-micromamba@v2
108112 with :
109113 cache-downloads : true
110114 cache-environment : true
0 commit comments