1717 PYTHON_VERSION : " 3.11"
1818
1919jobs :
20- setup :
21- name : Setup tests
20+ test :
21+ name : Run tests
2222 runs-on : ubuntu-latest
2323 permissions :
2424 contents : write
@@ -37,27 +37,31 @@ jobs:
3737 testing/extractions
3838 testing/protocol
3939 testing/share
40- key : testing-${{ runner.os }}-${{ env.PYTHON_VERSION }}-${{ hashFiles('**/* .py') }}
40+ key : testing-${{ runner.os }}-${{ env.PYTHON_VERSION }}-${{ hashFiles('isimip_utils/tests/constants .py') }}
4141 restore-keys : |
4242 testing-${{ runner.os }}-${{ env.PYTHON_VERSION }}-
4343
4444 - name : Install cdo 🌍
4545 run : |
4646 sudo apt-get update
47- sudo apt-get install -y cdo --no-install-recommends
47+ sudo apt-get install -y cdo netcdf-bin --no-install-recommends
4848
4949 - name : Set up Python 🐍
5050 uses : actions/setup-python@v6
5151 with :
5252 python-version : ${{ env.PYTHON_VERSION }}
53+ cache : ' pip'
5354
5455 - name : Install package 📦
55- run : pip install -e .[all]
56-
57- - name : Run setup scripts 🔧
5856 run : |
59- python testing/download.py
60- python testing/setup.py
57+ pip install --upgrade pip
58+ pip install -e .[all]
59+
60+ - name : Run download script 🌐
61+ run : python testing/download.py
62+
63+ - name : Run setup script 🔧
64+ run : python testing/setup.py
6165
6266 - name : Save testing cache 📤
6367 if : always()
6872 testing/extractions
6973 testing/protocol
7074 testing/share
71- key : testing-${{ runner.os }}-${{ env.PYTHON_VERSION }}-${{ hashFiles('**/*.py') }}
72-
73- test :
74- name : Run tests
75- needs : setup
76- runs-on : ubuntu-latest
77- permissions :
78- contents : write
79-
80- steps :
81- - name : Check out repository 💾
82- uses : actions/checkout@v5
83- with :
84- persist-credentials : false
85-
86- - name : Restore testing cache 📥
87- uses : actions/cache@v4
88- with :
89- path : |
90- testing/datasets
91- testing/extractions
92- testing/protocol
93- testing/share
94- key : testing-${{ runner.os }}-${{ env.PYTHON_VERSION }}-${{ hashFiles('**/*.py') }}
95- restore-keys : |
96- testing-${{ runner.os }}-${{ env.PYTHON_VERSION }}-
97-
98- - name : Install cdo 🌍
99- run : |
100- sudo apt-get update
101- sudo apt-get install -y cdo netcdf-bin --no-install-recommends
102-
103- - name : Set up Python 🐍
104- uses : actions/setup-python@v6
105- with :
106- python-version : ${{ env.PYTHON_VERSION }}
107-
108- - name : Install package 📦
109- run : pip install -e .[all]
75+ key : testing-${{ runner.os }}-${{ env.PYTHON_VERSION }}-${{ hashFiles('isimip_utils/tests/constants.py') }}
11076
11177 - name : Run pytest 🧪
112- run : pytest --cov=isimip_utils --cov-fail-under=90 --cov-report=term-missing
78+ run : pytest --cov=isimip_utils --cov-report=term-missing isimip_utils/tests/test_xarray.py
79+ # run: pytest --cov=isimip_utils --cov-fail-under=90 --cov-report=term-missing
0 commit comments