44name : Python package
55
66on :
7- [push, pull_request]
7+ push :
8+ pull_request :
9+ schedule :
10+ - cron : ' 25 1 3 * *'
811
912concurrency :
1013 group : ${{ github.workflow}}-${{ github.ref }}
@@ -18,23 +21,21 @@ jobs:
1821 if : always()
1922 strategy :
2023 matrix :
21- python-version : [3.8, 3.9 , '3.10 ']
24+ python-version : ['3.10', '3.11' , '3.12', '3.13 ']
2225 fail-fast : false
2326
2427 steps :
25- - uses : actions/checkout@v2
28+ - uses : actions/checkout@v4
2629 - name : Set up Python ${{ matrix.python-version }}
27- uses : actions/setup-python@v1
30+ uses : actions/setup-python@v5
2831 with :
2932 python-version : ${{ matrix.python-version }}
3033 - name : Install dependencies
3134 run : |
3235 python -m pip install --upgrade pip
33- pip install -r requirements.txt
36+ pip install .[tests]
3437 - name : Test with pytest
35- run : |
36- pip install pytest
37- pytest
38+ run : pytest
3839
3940
4041 integrated-tests :
@@ -44,21 +45,21 @@ jobs:
4445 if : always()
4546 strategy :
4647 matrix :
47- python-version : [3.8, 3.9 , '3.10 ']
48+ python-version : ['3.10', '3.11' , '3.12', '3.13 ']
4849 fail-fast : false
4950
5051 steps :
51- - uses : actions/checkout@v2
52+ - uses : actions/checkout@v4
5253 with :
5354 lfs : true
5455 - name : Set up Python ${{ matrix.python-version }}
55- uses : actions/setup-python@v1
56+ uses : actions/setup-python@v5
5657 with :
5758 python-version : ${{ matrix.python-version }}
5859 - name : Install dependencies
5960 run : |
6061 python -m pip install --upgrade pip
61- pip install -r requirements.txt
62+ pip install .[tests]
6263 - name : Integrated tests
6364 run : |
6465 pip install pytest xarray
@@ -75,13 +76,13 @@ jobs:
7576 fail-fast : false
7677
7778 steps :
78- - uses : actions/checkout@v2
79+ - uses : actions/checkout@v4
7980 with :
8081 lfs : true
8182 - name : Set up Python
82- uses : actions/setup-python@v1
83+ uses : actions/setup-python@v5
8384 with :
84- python-version : 3.9
85+ python-version : " 3.x "
8586 - name : Install dependencies
8687 run : |
8788 python -m pip install --upgrade pip
@@ -112,13 +113,13 @@ jobs:
112113 fail-fast : false
113114
114115 steps :
115- - uses : actions/checkout@v2
116+ - uses : actions/checkout@v4
116117 with :
117118 lfs : true
118119 - name : Set up Python
119- uses : actions/setup-python@v1
120+ uses : actions/setup-python@v5
120121 with :
121- python-version : 3.9
122+ python-version : " 3.x "
122123 - name : Install dependencies
123124 run : |
124125 python -m pip install --upgrade pip
@@ -153,15 +154,15 @@ jobs:
153154 if : always()
154155
155156 steps :
156- - uses : actions/checkout@v2
157+ - uses : actions/checkout@v4
157158 - name : Set up Python
158- uses : actions/setup-python@v1
159+ uses : actions/setup-python@v5
159160 with :
160- python-version : 3.9
161+ python-version : " 3.x "
161162 - name : Install dependencies
162163 run : |
163164 python -m pip install --upgrade pip
164- pip install -r requirements.txt
165+ pip install .
165166 - name : Lint with flake8
166167 run : |
167168 pip install flake8
@@ -175,11 +176,11 @@ jobs:
175176 if : always()
176177
177178 steps :
178- - uses : actions/checkout@v2
179+ - uses : actions/checkout@v4
179180 - name : Set up Python
180- uses : actions/setup-python@v1
181+ uses : actions/setup-python@v5
181182 with :
182- python-version : 3.9
183+ python-version : " 3.x "
183184 - name : Install dependencies
184185 run : |
185186 python -m pip install --upgrade pip
0 commit comments