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