Skip to content

Commit 07a8159

Browse files
authored
migrate to xarray-contrib/minimum-dependency-versions (#10677)
* create a policy definition file * use `xarray-contrib/minimum-dependency-versions` * remove the min-deps script * setup python * bump versions * exclude `hypothesis` * use `python-version` to select the version * stop ignoring `pydap` violations We appear to have reached the point where this is not necessary anymore (but the comment might have been wrong? We're already pinning to `pydap=3.5.0`)
1 parent 98732e7 commit 07a8159

File tree

3 files changed

+38
-350
lines changed

3 files changed

+38
-350
lines changed

.github/workflows/ci-additional.yaml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -311,23 +311,18 @@ jobs:
311311
with:
312312
fetch-depth: 0 # Fetch all history for all branches and tags.
313313

314-
- name: Setup micromamba
315-
uses: mamba-org/setup-micromamba@v2
314+
- uses: actions/setup-python@v5
316315
with:
317-
environment-name: xarray-tests
318-
create-args: >-
319-
python=3.12
320-
pyyaml
321-
python-dateutil
322-
cytoolz
323-
rich
324-
rich-click
325-
py-rattler
316+
python-version: "3.x"
326317

327318
- name: All-deps minimum versions policy
328-
run: |
329-
python ci/minimum_versions.py ci/requirements/min-all-deps.yml
319+
uses: xarray-contrib/minimum-dependency-versions@e2ac8ff0a76e8603d8536ef5d64743a375961ce9 # v0.1.1
320+
with:
321+
policy: ci/policy.yaml
322+
environment-paths: ci/requirements/min-all-deps.yml
330323

331324
- name: Bare minimum versions policy
332-
run: |
333-
python ci/minimum_versions.py ci/requirements/bare-minimum.yml
325+
uses: xarray-contrib/minimum-dependency-versions@e2ac8ff0a76e8603d8536ef5d64743a375961ce9 # v0.1.1
326+
with:
327+
policy: ci/policy.yaml
328+
environment-paths: ci/requirements/bare-minimum.yml

ci/minimum_versions.py

Lines changed: 0 additions & 335 deletions
This file was deleted.

ci/policy.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
channels:
2+
- conda-forge
3+
platforms:
4+
- noarch
5+
- linux-64
6+
policy:
7+
# all packages in months
8+
packages:
9+
python: 30
10+
numpy: 18
11+
default: 12
12+
# overrides for the policy
13+
overrides: {}
14+
# these packages are completely ignored
15+
exclude:
16+
- coveralls
17+
- pip
18+
- pytest
19+
- pytest-asyncio
20+
- pytest-cov
21+
- pytest-env
22+
- pytest-mypy-plugins
23+
- pytest-timeout
24+
- pytest-xdist
25+
- pytest-hypothesis
26+
- hypothesis
27+
# these packages don't fail the CI, but will be printed in the report
28+
ignored_violations: []

0 commit comments

Comments
 (0)