forked from pydata/xarray
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into namedarray-parallelcompat
* main: (153 commits) Add overloads to get_axis_num (pydata#8547) Fix CI: temporary pin pytest version to 7.4.* (pydata#8682) Bump the actions group with 1 update (pydata#8678) [namedarray] split `.set_dims()` into `.expand_dims()` and `broadcast_to()` (pydata#8380) Add chunk-friendly code path to `encode_cf_datetime` and `encode_cf_timedelta` (pydata#8575) Fix NetCDF4 C version detection (pydata#8675) groupby: Don't set `method` by default on flox>=0.9 (pydata#8657) Fix automatic broadcasting when wrapping array api class (pydata#8669) Fix unstack method when wrapping array api class (pydata#8668) Fix `variables` arg typo in `Dataset.sortby()` docstring (pydata#8670) dt.weekday_name - removal of function (pydata#8664) Add `dev` dependencies to `pyproject.toml` (pydata#8661) CI: Pin scientific-python/upload-nightly-action to release sha (pydata#8662) Update HOW_TO_RELEASE.md by clarifying where RTD build can be found (pydata#8655) ruff: use extend-exclude (pydata#8649) new whats-new section (pydata#8652) xfail another test on windows (pydata#8648) use first element of residual in _nonpolyfit_1d (pydata#8647) whatsnew for v2024.01.1 implement `isnull` using `full_like` instead of `zeros_like` (pydata#7395) ...
- Loading branch information
Showing
160 changed files
with
8,131 additions
and
4,629 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,7 @@ updates: | |
schedule: | ||
# Check for updates once a week | ||
interval: 'weekly' | ||
groups: | ||
actions: | ||
patterns: | ||
- "*" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,10 @@ name: CI Additional | |
on: | ||
push: | ||
branches: | ||
- "*" | ||
- "main" | ||
pull_request: | ||
branches: | ||
- "*" | ||
- "main" | ||
workflow_dispatch: # allows you to trigger manually | ||
|
||
concurrency: | ||
|
@@ -41,7 +41,7 @@ jobs: | |
|
||
env: | ||
CONDA_ENV_FILE: ci/requirements/environment.yml | ||
PYTHON_VERSION: "3.10" | ||
PYTHON_VERSION: "3.11" | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -76,6 +76,9 @@ jobs: | |
# Raise an error if there are warnings in the doctests, with `-Werror`. | ||
# This is a trial; if it presents an problem, feel free to remove. | ||
# See https://github.com/pydata/xarray/issues/7164 for more info. | ||
# | ||
# If dependencies emit warnings we can't do anything about, add ignores to | ||
# `xarray/tests/__init__.py`. | ||
python -m pytest --doctest-modules xarray --ignore xarray/tests -Werror | ||
mypy: | ||
|
@@ -87,7 +90,7 @@ jobs: | |
shell: bash -l {0} | ||
env: | ||
CONDA_ENV_FILE: ci/requirements/environment.yml | ||
PYTHON_VERSION: "3.10" | ||
PYTHON_VERSION: "3.11" | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -117,14 +120,14 @@ jobs: | |
python xarray/util/print_versions.py | ||
- name: Install mypy | ||
run: | | ||
python -m pip install mypy --force-reinstall | ||
python -m pip install "mypy<1.9" --force-reinstall | ||
- name: Run mypy | ||
run: | | ||
python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report xarray/ | ||
- name: Upload mypy coverage to Codecov | ||
uses: codecov/[email protected].4 | ||
uses: codecov/[email protected].5 | ||
with: | ||
file: mypy_report/cobertura.xml | ||
flags: mypy | ||
|
@@ -171,14 +174,14 @@ jobs: | |
python xarray/util/print_versions.py | ||
- name: Install mypy | ||
run: | | ||
python -m pip install mypy --force-reinstall | ||
python -m pip install "mypy<1.9" --force-reinstall | ||
- name: Run mypy | ||
run: | | ||
python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report xarray/ | ||
- name: Upload mypy coverage to Codecov | ||
uses: codecov/[email protected].4 | ||
uses: codecov/[email protected].5 | ||
with: | ||
file: mypy_report/cobertura.xml | ||
flags: mypy39 | ||
|
@@ -239,7 +242,7 @@ jobs: | |
python -m pyright xarray/ | ||
- name: Upload pyright coverage to Codecov | ||
uses: codecov/[email protected].4 | ||
uses: codecov/[email protected].5 | ||
with: | ||
file: pyright_report/cobertura.xml | ||
flags: pyright | ||
|
@@ -298,7 +301,7 @@ jobs: | |
python -m pyright xarray/ | ||
- name: Upload pyright coverage to Codecov | ||
uses: codecov/[email protected].4 | ||
uses: codecov/[email protected].5 | ||
with: | ||
file: pyright_report/cobertura.xml | ||
flags: pyright39 | ||
|
@@ -317,11 +320,6 @@ jobs: | |
run: | ||
shell: bash -l {0} | ||
|
||
strategy: | ||
matrix: | ||
environment-file: ["bare-minimum", "min-all-deps"] | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
|
@@ -332,11 +330,15 @@ jobs: | |
with: | ||
environment-name: xarray-tests | ||
create-args: >- | ||
python=3.10 | ||
python=3.11 | ||
pyyaml | ||
conda | ||
python-dateutil | ||
- name: minimum versions policy | ||
- name: All-deps minimum versions policy | ||
run: | | ||
python ci/min_deps_check.py ci/requirements/min-all-deps.yml | ||
- name: Bare minimum versions policy | ||
run: | | ||
python ci/min_deps_check.py ci/requirements/${{ matrix.environment-file }}.yml | ||
python ci/min_deps_check.py ci/requirements/bare-minimum.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,10 @@ name: CI | |
on: | ||
push: | ||
branches: | ||
- "*" | ||
- "main" | ||
pull_request: | ||
branches: | ||
- "*" | ||
- "main" | ||
workflow_dispatch: # allows you to trigger manually | ||
|
||
concurrency: | ||
|
@@ -34,6 +34,8 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
needs: detect-ci-trigger | ||
if: needs.detect-ci-trigger.outputs.triggered == 'false' | ||
env: | ||
ZARR_V3_EXPERIMENTAL_API: 1 | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
@@ -42,7 +44,7 @@ jobs: | |
matrix: | ||
os: ["ubuntu-latest", "macos-latest", "windows-latest"] | ||
# Bookend python versions | ||
python-version: ["3.9", "3.11"] | ||
python-version: ["3.9", "3.11", "3.12"] | ||
env: [""] | ||
include: | ||
# Minimum python version: | ||
|
@@ -67,15 +69,13 @@ jobs: | |
run: | | ||
echo "TODAY=$(date +'%Y-%m-%d')" >> $GITHUB_ENV | ||
if [[ "${{matrix.python-version}}" == "3.11" ]]; then | ||
if [[ ${{matrix.os}} == windows* ]]; then | ||
echo "CONDA_ENV_FILE=ci/requirements/environment-windows-py311.yml" >> $GITHUB_ENV | ||
if [[ ${{ matrix.os }} == windows* ]] ; | ||
then | ||
if [[ ${{ matrix.python-version }} != "3.12" ]]; then | ||
echo "CONDA_ENV_FILE=ci/requirements/environment-windows.yml" >> $GITHUB_ENV | ||
else | ||
echo "CONDA_ENV_FILE=ci/requirements/environment-py311.yml" >> $GITHUB_ENV | ||
echo "CONDA_ENV_FILE=ci/requirements/environment-windows-3.12.yml" >> $GITHUB_ENV | ||
fi | ||
elif [[ ${{ matrix.os }} == windows* ]] ; | ||
then | ||
echo "CONDA_ENV_FILE=ci/requirements/environment-windows.yml" >> $GITHUB_ENV | ||
elif [[ "${{ matrix.env }}" != "" ]] ; | ||
then | ||
if [[ "${{ matrix.env }}" == "flaky" ]] ; | ||
|
@@ -86,7 +86,11 @@ jobs: | |
echo "CONDA_ENV_FILE=ci/requirements/${{ matrix.env }}.yml" >> $GITHUB_ENV | ||
fi | ||
else | ||
echo "CONDA_ENV_FILE=ci/requirements/environment.yml" >> $GITHUB_ENV | ||
if [[ ${{ matrix.python-version }} != "3.12" ]]; then | ||
echo "CONDA_ENV_FILE=ci/requirements/environment.yml" >> $GITHUB_ENV | ||
else | ||
echo "CONDA_ENV_FILE=ci/requirements/environment-3.12.yml" >> $GITHUB_ENV | ||
fi | ||
fi | ||
echo "PYTHON_VERSION=${{ matrix.python-version }}" >> $GITHUB_ENV | ||
|
@@ -133,13 +137,13 @@ jobs: | |
|
||
- name: Upload test results | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Test results for ${{ runner.os }}-${{ matrix.python-version }} | ||
name: Test results for ${{ runner.os }}-${{ matrix.python-version }} ${{ matrix.env }} | ||
path: pytest.xml | ||
|
||
- name: Upload code coverage to Codecov | ||
uses: codecov/[email protected].4 | ||
uses: codecov/[email protected].5 | ||
with: | ||
file: ./coverage.xml | ||
flags: unittests | ||
|
@@ -153,7 +157,7 @@ jobs: | |
if: github.repository == 'pydata/xarray' | ||
steps: | ||
- name: Upload | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Event File | ||
path: ${{ github.event_path }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.