Skip to content

Commit f8c23b4

Browse files
Update downstream ci config (#418)
* Update downstream ci config
1 parent 4682c5b commit f8c23b4

File tree

4 files changed

+30
-65
lines changed

4 files changed

+30
-65
lines changed

.github/workflows/legacy-ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ jobs:
4646
with:
4747
ref: ${{ github.event.pull_request.head.sha || github.ref }}
4848
- name: Install Conda environment with Micromamba
49-
uses: mamba-org/provision-with-micromamba@v14
49+
uses: mamba-org/setup-micromamba@v1
5050
with:
5151
environment-file: tests/environment-unit-tests.yml
5252
environment-name: DEVELOP
5353
channels: conda-forge
54-
cache-env: true
54+
cache-environment: true
5555
cache-env-key: ubuntu-latest-3.10-no-eccodes
56-
extra-specs: |
56+
create-args: >-
5757
python=3.10
5858
- name: Install package
5959
run: |
@@ -76,14 +76,14 @@ jobs:
7676
with:
7777
ref: ${{ github.event.pull_request.head.sha || github.ref }}
7878
- name: Install Conda environment with Micromamba
79-
uses: mamba-org/provision-with-micromamba@v12
79+
uses: mamba-org/setup-micromamba@v1
8080
with:
8181
environment-file: tests/environment-unit-tests.yml
8282
environment-name: DEVELOP
8383
channels: conda-forge
84-
cache-env: true
84+
cache-environment: true
8585
cache-env-key: ubuntu-latest-3.10-no-eccodes
86-
extra-specs: |
86+
create-args: >-
8787
python=3.10
8888
- name: Install package
8989
run: |

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ repos:
6868
additional_dependencies: [toml]
6969
exclude: tests|docs
7070
- repo: https://github.com/b8raoult/optional-dependencies-all
71-
rev: "0.0.2"
71+
rev: "0.0.6"
7272
hooks:
7373
- id: optional-dependencies-all
74-
args: ["--inplace", "--all-key", "all", "--exclude-keys", "dev,docs,test"]
74+
args: ["--inplace", "--exclude-keys=ci,dev,docs,test", "--group=dev=all,docs,test"]
7575
- repo: https://github.com/tox-dev/pyproject-fmt
7676
rev: "2.1.3"
7777
hooks:

pyproject.toml

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -52,41 +52,42 @@ dependencies = [
5252
optional-dependencies.all = [
5353
"cartopy",
5454
"cdsapi",
55-
"cfgrib>=0.9.10.1",
56-
"dask",
57-
"earthkit-geo>=0.2",
58-
"earthkit-meteo>=0.0.1",
59-
"eccodes>=1.7",
6055
"eccovjson>=0.0.5",
6156
"ecmwf-api-client>=1.6.1",
6257
"ecmwf-opendata>=0.3.3",
63-
"entrypoints",
64-
"filelock",
6558
"geopandas",
6659
"hda",
67-
"jinja2",
68-
"jsonschema",
69-
"markdown",
70-
"multiurl",
60+
"polytope-client>=0.7.4",
61+
"pyfdb",
62+
"pyodc",
63+
]
64+
optional-dependencies.cds = [
65+
"cdsapi",
66+
]
67+
optional-dependencies.ci = [
68+
"array-api-compat",
69+
"torch",
70+
]
71+
optional-dependencies.dev = [
72+
"cartopy",
73+
"cdsapi",
74+
"earthkit-data-demo-source @ git+https://github.com/ecmwf/earthkit-data-demo-source",
75+
"eccovjson>=0.0.5",
76+
"ecmwf-api-client>=1.6.1",
77+
"ecmwf-opendata>=0.3.3",
78+
"geopandas",
79+
"hda",
7180
"nbconvert",
7281
"nbformat",
73-
"netcdf4",
74-
"pandas",
75-
"pdbufr>=0.11",
7682
"polytope-client>=0.7.4",
7783
"pyfdb",
7884
"pyodc",
7985
"pytest",
8086
"pytest-cov",
8187
"pytest-forked",
8288
"pytest-timeout",
83-
"pyyaml",
84-
"tqdm>=4.63",
85-
"xarray>=0.19",
86-
]
87-
optional-dependencies.cds = [
88-
"cdsapi",
8989
]
90+
9091
optional-dependencies.eccovjson = [
9192
"eccovjson>=0.0.5",
9293
]
@@ -112,6 +113,7 @@ optional-dependencies.projection = [
112113
"cartopy",
113114
]
114115
optional-dependencies.test = [
116+
"earthkit-data-demo-source @ git+https://github.com/ecmwf/earthkit-data-demo-source",
115117
"nbconvert",
116118
"nbformat",
117119
"pytest",

tests/downstream-ci-requirements.txt

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

0 commit comments

Comments
 (0)