Skip to content

Commit

Permalink
Merge branch 'main' into ig/fix_equality_checl
Browse files Browse the repository at this point in the history
  • Loading branch information
ilan-gold authored May 21, 2024
2 parents 89acd11 + 12123be commit 2dd3674
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 13 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci-additional.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
FORCE_COLOR: 3

jobs:
detect-ci-trigger:
name: detect ci trigger
Expand Down Expand Up @@ -133,7 +136,7 @@ jobs:
python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report xarray/
- name: Upload mypy coverage to Codecov
uses: codecov/codecov-action@v4.3.1
uses: codecov/codecov-action@v4.4.0
with:
file: mypy_report/cobertura.xml
flags: mypy
Expand Down Expand Up @@ -187,7 +190,7 @@ jobs:
python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report xarray/
- name: Upload mypy coverage to Codecov
uses: codecov/codecov-action@v4.3.1
uses: codecov/codecov-action@v4.4.0
with:
file: mypy_report/cobertura.xml
flags: mypy39
Expand Down Expand Up @@ -248,7 +251,7 @@ jobs:
python -m pyright xarray/
- name: Upload pyright coverage to Codecov
uses: codecov/codecov-action@v4.3.1
uses: codecov/codecov-action@v4.4.0
with:
file: pyright_report/cobertura.xml
flags: pyright
Expand Down Expand Up @@ -307,7 +310,7 @@ jobs:
python -m pyright xarray/
- name: Upload pyright coverage to Codecov
uses: codecov/codecov-action@v4.3.1
uses: codecov/codecov-action@v4.4.0
with:
file: pyright_report/cobertura.xml
flags: pyright39
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
FORCE_COLOR: 3

jobs:
detect-ci-trigger:
name: detect ci trigger
Expand Down Expand Up @@ -162,7 +165,7 @@ jobs:
path: pytest.xml

- name: Upload code coverage to Codecov
uses: codecov/codecov-action@v4.3.1
uses: codecov/codecov-action@v4.4.0
with:
file: ./coverage.xml
flags: unittests
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/hypothesis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
- cron: "0 0 * * *" # Daily “At 00:00” UTC
workflow_dispatch: # allows you to trigger manually

env:
FORCE_COLOR: 3

jobs:
detect-ci-trigger:
name: detect ci trigger
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/upstream-dev-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
FORCE_COLOR: 3

jobs:
detect-ci-trigger:
name: detect upstream-dev ci trigger
Expand Down Expand Up @@ -143,7 +146,7 @@ jobs:
run: |
python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report
- name: Upload mypy coverage to Codecov
uses: codecov/codecov-action@v4.3.1
uses: codecov/codecov-action@v4.4.0
with:
file: mypy_report/cobertura.xml
flags: mypy
Expand Down
10 changes: 5 additions & 5 deletions ci/min_deps_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
"isort",
"mypy",
"pip",
"setuptools",
"pytest",
"pytest-cov",
"pytest-env",
"pytest-xdist",
"pytest-timeout",
"pytest-xdist",
"setuptools",
}

POLICY_MONTHS = {"python": 30, "numpy": 18}
Expand Down Expand Up @@ -162,11 +162,11 @@ def process_pkg(
status = "<"
elif (req_major, req_minor) > (policy_major, policy_minor):
status = "> (!)"
delta = relativedelta(datetime.now(), policy_published_actual).normalized()
delta = relativedelta(datetime.now(), req_published).normalized()
n_months = delta.years * 12 + delta.months
warning(
f"Package is too new: {pkg}={policy_major}.{policy_minor} was "
f"published on {versions[policy_major, policy_minor]:%Y-%m-%d} "
f"Package is too new: {pkg}={req_major}.{req_minor} was "
f"published on {req_published:%Y-%m-%d} "
f"which was {n_months} months ago (policy is {policy_months} months)"
)
else:
Expand Down
2 changes: 1 addition & 1 deletion xarray/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def _importorskip(
)
has_numbagg_or_bottleneck = has_numbagg or has_bottleneck
requires_numbagg_or_bottleneck = pytest.mark.skipif(
not has_scipy_or_netCDF4, reason="requires scipy or netCDF4"
not has_numbagg_or_bottleneck, reason="requires numbagg or bottlekneck"
)
has_numpy_array_api, requires_numpy_array_api = _importorskip("numpy", "1.26.0")
has_numpy_2, requires_numpy_2 = _importorskip("numpy", "2.0.0")
Expand Down
2 changes: 1 addition & 1 deletion xarray/tests/test_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -3002,7 +3002,7 @@ def setUp(self) -> None:
data = np.sin(2 * np.pi * month / 12.0)
darray = DataArray(data, dims=["time"])
darray.coords["time"] = xr.cftime_range(
start="2017", periods=12, freq="1M", calendar="noleap"
start="2017", periods=12, freq="1ME", calendar="noleap"
)

self.darray = darray
Expand Down

0 comments on commit 2dd3674

Please sign in to comment.