Skip to content

Commit

Permalink
rewrite the min_deps_check script (#9754)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
keewis authored Nov 10, 2024
1 parent 181536f commit c425779
Show file tree
Hide file tree
Showing 3 changed files with 332 additions and 224 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/ci-additional.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,9 @@ jobs:
run:
shell: bash -l {0}

env:
COLUMNS: 120

steps:
- uses: actions/checkout@v4
with:
Expand All @@ -311,20 +314,20 @@ jobs:
- name: Setup micromamba
uses: mamba-org/setup-micromamba@v2
with:
# run with micromamba 1.5.10 together with conda
# conda.api is not API compatible with libmambapy
micromamba-version: "1.5.10-0"
environment-name: xarray-tests
create-args: >-
python=3.12
pyyaml
python-dateutil
conda
cytoolz
rich
rich-click
py-rattler
- name: All-deps minimum versions policy
run: |
python ci/min_deps_check.py ci/requirements/min-all-deps.yml
python ci/minimum_versions.py ci/requirements/min-all-deps.yml
- name: Bare minimum versions policy
run: |
python ci/min_deps_check.py ci/requirements/bare-minimum.yml
python ci/minimum_versions.py ci/requirements/bare-minimum.yml
218 changes: 0 additions & 218 deletions ci/min_deps_check.py

This file was deleted.

Loading

0 comments on commit c425779

Please sign in to comment.