Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

xarray-contrib/minimum-dependency-versions

Repository files navigation

minimum-dependency-versions

Check that the minimum dependency versions follow xarray's policy.

Usage

To use the minimum-dependency-versions action in workflows, create a policy file (policy.yaml):

channels:
 - conda-forge
platforms:
 - noarch
 - linux-64
policy:
 # policy in months
 # Example is xarray's values
 packages:
 python: 30
 numpy: 18
 default: 12
 overrides:
 # override the policy for specific packages
 package3: 0.3.1
 # these packages are completely ignored
 exclude:
 - package1
 - package2
 - ...
 # these packages don't fail the CI, but will be printed in the report as a warning
 ignored_violations:
 - package4

If there are no packages with overrides, exclude, or ignored_violations, you can set them to an empty mapping or sequence, respectively:

 ...
 overrides: {}
 exclude: []
 ignored_violations: []

Then add a new step to CI:

jobs:
 my-job:
 ...
 steps:
 ...
 - uses: xarray-contrib/minimum-dependency-versions@version
 with:
 policy: policy.yaml
 environment-paths: path/to/env.yaml

To analyze multiple environments at the same time, pass a multi-line string:

jobs:
 my-job:
 ...
 steps:
 ...
 - uses: xarray-contrib/minimum-dependency-versions@version
 with:
 environment-paths: |
 path/to/env1.yaml
 path/to/env2.yaml
 path/to/env3.yaml

About

Automated minimum dependency policy checks

Resources

License

Code of conduct

Stars

Watchers

Forks

Contributors 4

Languages

AltStyle によって変換されたページ (->オリジナル) /