46
46
matrix :
47
47
os : ["ubuntu-latest", "macos-latest", "windows-latest"]
48
48
# Bookend python versions
49
- python-version : ["3.9", "3.11", "3.12"]
49
+ python-version : ["3.9", "3.12"]
50
50
env : [""]
51
51
include :
52
52
# Minimum python version:
@@ -58,10 +58,11 @@ jobs:
58
58
os : ubuntu-latest
59
59
# Latest python version:
60
60
- env : " all-but-dask"
61
- python-version : " 3.10"
61
+ # Not 3.12 because of pint
62
+ python-version : " 3.11"
62
63
os : ubuntu-latest
63
64
- env : " flaky"
64
- python-version : " 3.10 "
65
+ python-version : " 3.12 "
65
66
os : ubuntu-latest
66
67
steps :
67
68
- uses : actions/checkout@v4
@@ -73,25 +74,30 @@ jobs:
73
74
74
75
if [[ ${{ matrix.os }} == windows* ]] ;
75
76
then
76
- if [[ ${{ matrix.python-version }} != "3.12 " ]]; then
77
+ if [[ ${{ matrix.python-version }} != "3.13 " ]]; then
77
78
echo "CONDA_ENV_FILE=ci/requirements/environment-windows.yml" >> $GITHUB_ENV
78
79
else
79
- echo "CONDA_ENV_FILE=ci/requirements/environment-windows-3.12 .yml" >> $GITHUB_ENV
80
+ echo "CONDA_ENV_FILE=ci/requirements/environment-windows-3.13 .yml" >> $GITHUB_ENV
80
81
fi
81
82
elif [[ "${{ matrix.env }}" != "" ]] ;
82
83
then
83
84
if [[ "${{ matrix.env }}" == "flaky" ]] ;
84
85
then
85
86
echo "CONDA_ENV_FILE=ci/requirements/environment.yml" >> $GITHUB_ENV
86
- echo "PYTEST_EXTRA_FLAGS=-- run-flaky --run-network-tests" >> $GITHUB_ENV
87
+ echo "PYTEST_ADDOPTS=-m 'flaky or network' -- run-flaky --run-network-tests -W default " >> $GITHUB_ENV
87
88
else
88
89
echo "CONDA_ENV_FILE=ci/requirements/${{ matrix.env }}.yml" >> $GITHUB_ENV
89
90
fi
91
+ if [[ "${{ matrix.env }}" == "min-all-deps" ]] ;
92
+ then
93
+ # Don't raise on warnings
94
+ echo "PYTEST_ADDOPTS=-W default" >> $GITHUB_ENV
95
+ fi
90
96
else
91
- if [[ ${{ matrix.python-version }} != "3.12 " ]]; then
97
+ if [[ ${{ matrix.python-version }} != "3.13 " ]]; then
92
98
echo "CONDA_ENV_FILE=ci/requirements/environment.yml" >> $GITHUB_ENV
93
99
else
94
- echo "CONDA_ENV_FILE=ci/requirements/environment-3.12 .yml" >> $GITHUB_ENV
100
+ echo "CONDA_ENV_FILE=ci/requirements/environment-3.13 .yml" >> $GITHUB_ENV
95
101
fi
96
102
fi
97
103
@@ -111,7 +117,7 @@ jobs:
111
117
# We only want to install this on one run, because otherwise we'll have
112
118
# duplicate annotations.
113
119
- name : Install error reporter
114
- if : ${{ matrix.os }} == 'ubuntu-latest' and ${{ matrix.python-version }} == '3.10 '
120
+ if : ${{ matrix.os }} == 'ubuntu-latest' and ${{ matrix.python-version }} == '3.12 '
115
121
run : |
116
122
python -m pip install pytest-github-actions-annotate-failures
117
123
@@ -143,7 +149,6 @@ jobs:
143
149
--cov=xarray
144
150
--cov-report=xml
145
151
--junitxml=pytest.xml
146
- $PYTEST_EXTRA_FLAGS
147
152
148
153
- name : Upload test results
149
154
if : always()
@@ -153,7 +158,7 @@ jobs:
153
158
path : pytest.xml
154
159
155
160
- name : Upload code coverage to Codecov
156
- uses : codecov/codecov-action@v4.2 .0
161
+ uses : codecov/codecov-action@v4.3 .0
157
162
with :
158
163
file : ./coverage.xml
159
164
flags : unittests
0 commit comments