Skip to content

Commit c003dea

Browse files
authored
Remove duplicate tests, v3 (#6550)
* Revert "Revert "Remove duplicate tests (#6536)" (#6540)" This reverts commit 61e966c.
1 parent aee7106 commit c003dea

File tree

6 files changed

+19
-105
lines changed

6 files changed

+19
-105
lines changed

.github/workflows/ci-additional.yaml

Lines changed: 2 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -30,93 +30,6 @@ jobs:
3030
with:
3131
keyword: "[skip-ci]"
3232

33-
# This job is deprecated and can be removed soon. It's still here in case the
34-
# move consolidate with `ci.yaml` missed something which the existing test
35-
# picks up.
36-
test:
37-
name: ${{ matrix.os }} ${{ matrix.env }}
38-
runs-on: ${{ matrix.os }}
39-
needs: detect-ci-trigger
40-
if: needs.detect-ci-trigger.outputs.triggered == 'false'
41-
defaults:
42-
run:
43-
shell: bash -l {0}
44-
strategy:
45-
fail-fast: false
46-
matrix:
47-
os: ["ubuntu-latest"]
48-
env: [
49-
# Minimum python version:
50-
"py38-bare-minimum",
51-
"py38-min-all-deps",
52-
53-
# Latest python version:
54-
"py39-all-but-dask",
55-
"py39-flaky",
56-
]
57-
steps:
58-
- uses: actions/checkout@v3
59-
with:
60-
fetch-depth: 0 # Fetch all history for all branches and tags.
61-
62-
- name: Set environment variables
63-
run: |
64-
if [[ ${{ matrix.env }} == "py39-flaky" ]] ;
65-
then
66-
echo "CONDA_ENV_FILE=ci/requirements/environment.yml" >> $GITHUB_ENV
67-
echo "PYTEST_EXTRA_FLAGS=--run-flaky --run-network-tests" >> $GITHUB_ENV
68-
69-
else
70-
echo "CONDA_ENV_FILE=ci/requirements/${{ matrix.env }}.yml" >> $GITHUB_ENV
71-
fi
72-
- name: Cache conda
73-
uses: actions/cache@v3
74-
with:
75-
path: ~/conda_pkgs_dir
76-
key: ${{ runner.os }}-conda-${{ matrix.env }}-${{
77-
hashFiles('ci/requirements/**.yml') }}
78-
79-
- uses: conda-incubator/setup-miniconda@v2
80-
with:
81-
channels: conda-forge
82-
channel-priority: strict
83-
mamba-version: "*"
84-
activate-environment: xarray-tests
85-
auto-update-conda: false
86-
python-version: 3.9
87-
use-only-tar-bz2: true
88-
89-
- name: Install conda dependencies
90-
run: |
91-
mamba env update -f $CONDA_ENV_FILE
92-
93-
- name: Install xarray
94-
run: |
95-
python -m pip install --no-deps -e .
96-
97-
- name: Version info
98-
run: |
99-
conda info -a
100-
conda list
101-
python xarray/util/print_versions.py
102-
- name: Import xarray
103-
run: |
104-
python -c "import xarray"
105-
- name: Run tests
106-
run: |
107-
python -m pytest -n 4 \
108-
--cov=xarray \
109-
--cov-report=xml \
110-
$PYTEST_EXTRA_FLAGS
111-
112-
- name: Upload code coverage to Codecov
113-
uses: codecov/codecov-action@v3.1.0
114-
with:
115-
file: ./coverage.xml
116-
flags: unittests,${{ matrix.env }}
117-
env_vars: RUNNER_OS
118-
name: codecov-umbrella
119-
fail_ci_if_error: false
12033
doctest:
12134
name: Doctests
12235
runs-on: "ubuntu-latest"
@@ -221,5 +134,5 @@ jobs:
221134
- name: minimum versions policy
222135
run: |
223136
mamba install -y pyyaml conda python-dateutil
224-
python ci/min_deps_check.py ci/requirements/py38-bare-minimum.yml
225-
python ci/min_deps_check.py ci/requirements/py38-min-all-deps.yml
137+
python ci/min_deps_check.py ci/requirements/bare-minimum.yml
138+
python ci/min_deps_check.py ci/requirements/min-all-deps.yml

.github/workflows/ci.yaml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
with:
3131
keyword: "[skip-ci]"
3232
test:
33-
name: ${{ matrix.os }} py${{ matrix.python-version }}
33+
name: ${{ matrix.os }} py${{ matrix.python-version }} ${{ matrix.env }}
3434
runs-on: ${{ matrix.os }}
3535
needs: detect-ci-trigger
3636
if: needs.detect-ci-trigger.outputs.triggered == 'false'
@@ -43,20 +43,21 @@ jobs:
4343
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
4444
# Bookend python versions
4545
python-version: ["3.8", "3.10"]
46+
env: [""]
4647
include:
4748
# Minimum python version:
48-
- env: "py38-bare-minimum"
49-
python-version: 3.8
49+
- env: "bare-minimum"
50+
python-version: "3.8"
5051
os: ubuntu-latest
51-
- env: "py38-min-all-deps"
52-
python-version: 3.8
52+
- env: "min-all-deps"
53+
python-version: "3.8"
5354
os: ubuntu-latest
5455
# Latest python version:
55-
- env: "py39-all-but-dask"
56-
python-version: 3.9
56+
- env: "all-but-dask"
57+
python-version: "3.10"
5758
os: ubuntu-latest
58-
- env: "py39-flaky"
59-
python-version: 3.9
59+
- env: "flaky"
60+
python-version: "3.10"
6061
os: ubuntu-latest
6162
steps:
6263
- uses: actions/checkout@v3
@@ -69,7 +70,7 @@ jobs:
6970
echo "CONDA_ENV_FILE=ci/requirements/environment-windows.yml" >> $GITHUB_ENV
7071
elif [[ "${{ matrix.env }}" != "" ]] ;
7172
then
72-
if [[ "${{ matrix.env }}" == "py39-flaky" ]] ;
73+
if [[ "${{ matrix.env }}" == "flaky" ]] ;
7374
then
7475
echo "CONDA_ENV_FILE=ci/requirements/environment.yml" >> $GITHUB_ENV
7576
echo "PYTEST_EXTRA_FLAGS=--run-flaky --run-network-tests" >> $GITHUB_ENV
@@ -86,8 +87,8 @@ jobs:
8687
uses: actions/cache@v3
8788
with:
8889
path: ~/conda_pkgs_dir
89-
key: ${{ runner.os }}-conda-py${{ matrix.python-version }}-${{
90-
hashFiles('ci/requirements/**.yml') }}
90+
key: ${{ runner.os }}-conda-py${{ matrix.python-version }}-${{ hashFiles('ci/requirements/**.yml') }}-${{ matrix.env }}
91+
9192
- uses: conda-incubator/setup-miniconda@v2
9293
with:
9394
channels: conda-forge

ci/requirements/py39-all-but-dask.yml renamed to ci/requirements/all-but-dask.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ channels:
33
- conda-forge
44
- nodefaults
55
dependencies:
6-
- python=3.9
6+
- python=3.10
77
- black
88
- aiobotocore
99
- boto3
@@ -17,7 +17,7 @@ dependencies:
1717
- h5py
1818
- hdf5
1919
- hypothesis
20-
- lxml # Optional dep of pydap
20+
- lxml # Optional dep of pydap
2121
- matplotlib-base
2222
- nc-time-axis
2323
- netcdf4
@@ -42,4 +42,4 @@ dependencies:
4242
- typing_extensions
4343
- zarr
4444
- pip:
45-
- numbagg
45+
- numbagg
File renamed without changes.
File renamed without changes.

doc/getting-started-guide/installing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ release is guaranteed to work.
102102

103103
You can see the actual minimum tested versions:
104104

105-
`<https://github.com/pydata/xarray/blob/main/ci/requirements/py38-min-all-deps.yml>`_
105+
`<https://github.com/pydata/xarray/blob/main/ci/requirements/min-all-deps.yml>`_
106106

107107
.. _installation-instructions:
108108

0 commit comments

Comments
 (0)