Skip to content

Commit 6b01a81

Browse files
Resolve "FutureWarning: xarray.merge will change" (#179)
1 parent 2c5814f commit 6b01a81

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

.github/workflows/_codecov.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
run: python -m pip install . -r requirements-dev.txt
5151

5252
- name: Generate coverage report
53-
run: pytest --retries 1 --cov --cov-report=xml
53+
run: pytest --retries 1 -n auto --cov --cov-report=xml
5454

5555
- name: Upload coverage to Codecov
5656
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 #v5.5.1

.github/workflows/_test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ jobs:
4141
run: python -m pip install --user . -r requirements-dev.txt
4242

4343
- name: Run unit tests
44-
run: pytest -vv --retries 1 tests
44+
run: pytest -vv --retries 1 -n auto tests

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ UV := uv
1010
PYTHON := python
1111
PYTEST := $(UV) run pytest
1212
TESTS := tests
13-
PYTEST_OPTS := -vv --junit-xml=pytest.xml
13+
PYTEST_OPTS := -vv -x -n auto --junit-xml=pytest.xml
1414
PYTEST_COV_OPTS := $(PYTEST_OPTS) --cov=cmethods --cov-report=xml:coverage.xml --cov-report=term
1515

1616
## ======= M A K E F I L E - T A R G E T S =====================================

cmethods/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def adjust(
246246
**kwargs,
247247
)
248248

249-
result = monthly_result if result is None else xr.merge([result, monthly_result])
249+
result = monthly_result if result is None else xr.merge([result, monthly_result], compat="no_conflicts", join="outer")
250250

251251
return _add_cmethods_metadata(result, method, **metadata_kwargs)
252252

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ matplotlib
33
pytest
44
pytest-cov
55
pytest-retry
6+
pytest-xdist
67
scikit-learn
78
scipy
89
venv-kernel

0 commit comments

Comments
 (0)