1919 if : |
2020 github.repository == 'xarray-contrib/xarray-array-testing'
2121 && (github.event_name == 'push' || github.event_name == 'pull_request')
22+ && !contains(github.event.pull_request.labels.*.name, 'skip-ci')
2223 outputs :
2324 triggered : ${{ steps.detect-trigger.outputs.trigger-found }}
2425 steps :
3637 runs-on : ${{ matrix.os }}
3738 needs : detect-ci-trigger
3839 if : needs.detect-ci-trigger.outputs.triggered == 'false'
40+
3941 env :
4042 FORCE_COLOR : 3
4143 CONDA_ENV_FILE : " ci/requirements/environment.yaml"
@@ -47,23 +49,22 @@ jobs:
4749 fail-fast : false
4850 matrix :
4951 os : ["ubuntu-latest", "macos-latest", "windows-latest"]
50- python-version : ["3.11", "3.12 "]
52+ python-version : ["3.11", "3.13 "]
5153
5254 steps :
5355 - uses : actions/checkout@v4
5456 with :
5557 fetch-depth : 0
5658
5759 - name : Setup micromamba
58- uses : mamba-org/setup-micromamba@v1
60+ uses : mamba-org/setup-micromamba@v2
5961 with :
6062 environment-file : ci/requirements/environment.yaml
6163 environment-name : tests
6264 cache-environment : true
6365 cache-environment-key : " ${{runner.os}}-${{runner.arch}}-py${{matrix.python-version}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}"
6466 create-args : >-
6567 python=${{matrix.python-version}}
66- conda
6768
6869 - name : Install nightly xarray
6970 run : |
@@ -73,23 +74,22 @@ jobs:
7374 run : |
7475 python -m pip install --no-deps -e .
7576
76- - name : Version info
77- run : |
78- conda info -a
79- conda list
80-
8177 - name : Import xarray-array-testing
8278 run : |
8379 python -c 'import xarray_array_testing'
8480
8581 - name : Restore cached hypothesis directory
86- uses : actions/cache@v4
82+ uses : actions/cache/restore @v4
8783 with :
8884 path : .hypothesis/
8985 key : cache-hypothesis
90- enableCrossOsArchive : true
91- save-always : true
9286
9387 - name : Run tests
9488 run : |
9589 python -m pytest --cov=xarray_array_testing
90+
91+ - name : Cache hypothesis directory
92+ uses : actions/cache/save@v4
93+ with :
94+ path : .hypothesis/
95+ key : cache-hypothesis
0 commit comments