Skip to content

Commit 16fdac9

Browse files
authored
CI test suites with pinned minimum dependencies (#3346)
* CI test suites with pinned minimum dependencies * code review * Clarity re lxml
1 parent ea101f5 commit 16fdac9

File tree

8 files changed

+73
-6
lines changed

8 files changed

+73
-6
lines changed

azure-pipelines.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@ jobs:
88
- job: Linux
99
strategy:
1010
matrix:
11-
py35-min:
12-
conda_env: py35-min
11+
py35-bare-minimum:
12+
conda_env: py35-bare-minimum
13+
py36-min-all-deps:
14+
conda_env: py36-min-all-deps
15+
py36-min-nep18:
16+
conda_env: py36-min-nep18
1317
py36:
1418
conda_env: py36
1519
py37:
File renamed without changes.

ci/requirements/py36-min-all-deps.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: xarray-tests
2+
channels:
3+
- conda-forge
4+
dependencies:
5+
- python=3.6.7
6+
- black
7+
- boto3=1.9.235
8+
- bottleneck=1.2.1
9+
- cdms2=3.1.3
10+
- cfgrib=0.9.7.2
11+
- cftime=1.0.3.4
12+
- coveralls
13+
- dask=2.4.0
14+
- distributed=2.4.0
15+
- flake8
16+
- h5netcdf=0.7.4
17+
- h5py=2.10.0
18+
- hdf5=1.10.5
19+
- hypothesis
20+
- iris=2.2.0
21+
- lxml=4.4.1 # optional dep of pydap
22+
- matplotlib=3.1.1
23+
- mypy==0.720 # Must match .pre-commit-config.yaml
24+
- nc-time-axis=1.2.0
25+
- netcdf4=1.5.1.2
26+
- numba=0.45.1
27+
- numpy=1.17.2
28+
- pandas=0.25.1
29+
- pip
30+
- pseudonetcdf=3.0.2
31+
- pydap=3.2.2
32+
- pynio=1.5.5
33+
- pytest
34+
- pytest-cov
35+
- pytest-env
36+
- rasterio=1.0.28
37+
- scipy=1.3.1
38+
- seaborn=0.9.0
39+
# - sparse # See py36-min-nep18.yml
40+
- toolz=0.10.0
41+
- zarr=2.3.2
42+
- pip:
43+
- numbagg==0.1

ci/requirements/py36-min-nep18.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: xarray-tests
2+
channels:
3+
- conda-forge
4+
dependencies:
5+
# Optional dependencies that require NEP18, such as sparse,
6+
# require drastically newer packages than everything else
7+
- python=3.6.7
8+
- coveralls
9+
- dask=2.4.0
10+
- distributed=2.4.0
11+
- numpy=1.17
12+
- pandas=0.25
13+
- pytest
14+
- pytest-cov
15+
- pytest-env
16+
- scipy=1.3
17+
- sparse=0.8.0

ci/requirements/py36.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ dependencies:
1515
- flake8
1616
- h5netcdf
1717
- h5py
18+
- hdf5
1819
- hypothesis
1920
- iris>=1.10
20-
- lxml
21+
- lxml # optional dep of pydap
2122
- matplotlib
2223
- mypy==0.720 # Must match .pre-commit-config.yaml
2324
- nc-time-axis

ci/requirements/py37-windows.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ dependencies:
1515
- flake8
1616
- h5netcdf
1717
- h5py
18+
- hdf5
1819
- hypothesis
1920
- iris>=1.10
20-
- lxml
21+
- lxml # optional dep of pydap
2122
- matplotlib
2223
- mypy==0.720 # Must match .pre-commit-config.yaml
2324
- nc-time-axis

ci/requirements/py37.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ dependencies:
1515
- flake8
1616
- h5netcdf
1717
- h5py
18+
- hdf5
1819
- hypothesis
1920
- iris>=1.10
20-
- lxml
21+
- lxml # optional dep of pydap
2122
- matplotlib
2223
- mypy==0.720 # Must match .pre-commit-config.yaml
2324
- nc-time-axis

xarray/tests/test_plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1962,7 +1962,7 @@ def test_datetime_hue(self, hue_style):
19621962
ds2.plot.scatter(x="A", y="B", hue="hue", hue_style=hue_style)
19631963

19641964
def test_facetgrid_hue_style(self):
1965-
# Can't move this to pytest.mark.parametrize because py35-min
1965+
# Can't move this to pytest.mark.parametrize because py35-bare-minimum
19661966
# doesn't have mpl.
19671967
for hue_style, map_type in zip(
19681968
["discrete", "continuous"], [list, mpl.collections.PathCollection]

0 commit comments

Comments
 (0)