Skip to content

Commit 45ceac6

Browse files
committed
Merge branch 'main' into backend-indexing
* main: Bump codecov/codecov-action from 4.3.1 to 4.4.0 in the actions group (#9036) Use ME in test_plot instead of M (#9035) Fix numbagg or bottlekneck skip (#9034) [skip-ci] min_deps_check: show age of required pkg on error (#9025) attempt to get colour output in CI (#9031)
2 parents d763c02 + 12123be commit 45ceac6

File tree

7 files changed

+25
-13
lines changed

7 files changed

+25
-13
lines changed

.github/workflows/ci-additional.yaml

+7-4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ concurrency:
2121
group: ${{ github.workflow }}-${{ github.ref }}
2222
cancel-in-progress: true
2323

24+
env:
25+
FORCE_COLOR: 3
26+
2427
jobs:
2528
detect-ci-trigger:
2629
name: detect ci trigger
@@ -136,7 +139,7 @@ jobs:
136139
python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report xarray/
137140
138141
- name: Upload mypy coverage to Codecov
139-
uses: codecov/codecov-action@v4.3.1
142+
uses: codecov/codecov-action@v4.4.0
140143
with:
141144
file: mypy_report/cobertura.xml
142145
flags: mypy
@@ -190,7 +193,7 @@ jobs:
190193
python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report xarray/
191194
192195
- name: Upload mypy coverage to Codecov
193-
uses: codecov/codecov-action@v4.3.1
196+
uses: codecov/codecov-action@v4.4.0
194197
with:
195198
file: mypy_report/cobertura.xml
196199
flags: mypy39
@@ -251,7 +254,7 @@ jobs:
251254
python -m pyright xarray/
252255
253256
- name: Upload pyright coverage to Codecov
254-
uses: codecov/codecov-action@v4.3.1
257+
uses: codecov/codecov-action@v4.4.0
255258
with:
256259
file: pyright_report/cobertura.xml
257260
flags: pyright
@@ -310,7 +313,7 @@ jobs:
310313
python -m pyright xarray/
311314
312315
- name: Upload pyright coverage to Codecov
313-
uses: codecov/codecov-action@v4.3.1
316+
uses: codecov/codecov-action@v4.4.0
314317
with:
315318
file: pyright_report/cobertura.xml
316319
flags: pyright39

.github/workflows/ci.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ concurrency:
2020
group: ${{ github.workflow }}-${{ github.ref }}
2121
cancel-in-progress: true
2222

23+
env:
24+
FORCE_COLOR: 3
25+
2326
jobs:
2427
detect-ci-trigger:
2528
name: detect ci trigger
@@ -164,7 +167,7 @@ jobs:
164167
path: pytest.xml
165168

166169
- name: Upload code coverage to Codecov
167-
uses: codecov/codecov-action@v4.3.1
170+
uses: codecov/codecov-action@v4.4.0
168171
with:
169172
file: ./coverage.xml
170173
flags: unittests

.github/workflows/hypothesis.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
- cron: "0 0 * * *" # Daily “At 00:00” UTC
1212
workflow_dispatch: # allows you to trigger manually
1313

14+
env:
15+
FORCE_COLOR: 3
16+
1417
jobs:
1518
detect-ci-trigger:
1619
name: detect ci trigger

.github/workflows/upstream-dev-ci.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ concurrency:
1515
group: ${{ github.workflow }}-${{ github.ref }}
1616
cancel-in-progress: true
1717

18+
env:
19+
FORCE_COLOR: 3
20+
1821
jobs:
1922
detect-ci-trigger:
2023
name: detect upstream-dev ci trigger
@@ -143,7 +146,7 @@ jobs:
143146
run: |
144147
python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report
145148
- name: Upload mypy coverage to Codecov
146-
uses: codecov/codecov-action@v4.3.1
149+
uses: codecov/codecov-action@v4.4.0
147150
with:
148151
file: mypy_report/cobertura.xml
149152
flags: mypy

ci/min_deps_check.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
"isort",
2424
"mypy",
2525
"pip",
26-
"setuptools",
2726
"pytest",
2827
"pytest-cov",
2928
"pytest-env",
30-
"pytest-xdist",
3129
"pytest-timeout",
30+
"pytest-xdist",
31+
"setuptools",
3232
}
3333

3434
POLICY_MONTHS = {"python": 30, "numpy": 18}
@@ -162,11 +162,11 @@ def process_pkg(
162162
status = "<"
163163
elif (req_major, req_minor) > (policy_major, policy_minor):
164164
status = "> (!)"
165-
delta = relativedelta(datetime.now(), policy_published_actual).normalized()
165+
delta = relativedelta(datetime.now(), req_published).normalized()
166166
n_months = delta.years * 12 + delta.months
167167
warning(
168-
f"Package is too new: {pkg}={policy_major}.{policy_minor} was "
169-
f"published on {versions[policy_major, policy_minor]:%Y-%m-%d} "
168+
f"Package is too new: {pkg}={req_major}.{req_minor} was "
169+
f"published on {req_published:%Y-%m-%d} "
170170
f"which was {n_months} months ago (policy is {policy_months} months)"
171171
)
172172
else:

xarray/tests/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def _importorskip(
145145
)
146146
has_numbagg_or_bottleneck = has_numbagg or has_bottleneck
147147
requires_numbagg_or_bottleneck = pytest.mark.skipif(
148-
not has_scipy_or_netCDF4, reason="requires scipy or netCDF4"
148+
not has_numbagg_or_bottleneck, reason="requires numbagg or bottlekneck"
149149
)
150150
has_numpy_array_api, requires_numpy_array_api = _importorskip("numpy", "1.26.0")
151151
has_numpy_2, requires_numpy_2 = _importorskip("numpy", "2.0.0")

xarray/tests/test_plot.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3002,7 +3002,7 @@ def setUp(self) -> None:
30023002
data = np.sin(2 * np.pi * month / 12.0)
30033003
darray = DataArray(data, dims=["time"])
30043004
darray.coords["time"] = xr.cftime_range(
3005-
start="2017", periods=12, freq="1M", calendar="noleap"
3005+
start="2017", periods=12, freq="1ME", calendar="noleap"
30063006
)
30073007

30083008
self.darray = darray

0 commit comments

Comments
 (0)