Skip to content

Commit c425779

Browse files
authored
rewrite the min_deps_check script (#9754)
* rewrite the `min_deps_check` script * call the new script * unpin `micromamba` * install `rich-click` * enforce a minimum width of 120 * remove the background colors * remove old min-deps script * more changing of colors * some more styling * ... aaand some more styling * move the style definition in one place * compare versions *before* formatting * move the definition `console` into `main` * properly add two columns to the warnings tables * define the styles using the class and RGB values
1 parent 181536f commit c425779

File tree

3 files changed

+332
-224
lines changed

3 files changed

+332
-224
lines changed

.github/workflows/ci-additional.yaml

+9-6
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,9 @@ jobs:
303303
run:
304304
shell: bash -l {0}
305305

306+
env:
307+
COLUMNS: 120
308+
306309
steps:
307310
- uses: actions/checkout@v4
308311
with:
@@ -311,20 +314,20 @@ jobs:
311314
- name: Setup micromamba
312315
uses: mamba-org/setup-micromamba@v2
313316
with:
314-
# run with micromamba 1.5.10 together with conda
315-
# conda.api is not API compatible with libmambapy
316-
micromamba-version: "1.5.10-0"
317317
environment-name: xarray-tests
318318
create-args: >-
319319
python=3.12
320320
pyyaml
321321
python-dateutil
322-
conda
322+
cytoolz
323+
rich
324+
rich-click
325+
py-rattler
323326
324327
- name: All-deps minimum versions policy
325328
run: |
326-
python ci/min_deps_check.py ci/requirements/min-all-deps.yml
329+
python ci/minimum_versions.py ci/requirements/min-all-deps.yml
327330
328331
- name: Bare minimum versions policy
329332
run: |
330-
python ci/min_deps_check.py ci/requirements/bare-minimum.yml
333+
python ci/minimum_versions.py ci/requirements/bare-minimum.yml

ci/min_deps_check.py

-218
This file was deleted.

0 commit comments

Comments
 (0)