Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,20 @@ jobs:
envs/env1.yaml
envs/env2.yaml
expected-failure: ["false"]
policy-file: ["policy.yaml"]
include:
- env-paths: |
envs/failing-env1.yaml
policy-file: "policy.yaml"
expected-failure: "true"
- env-paths: |
envs/env1.yaml
envs/failing-env1.yaml
policy-file: "policy.yaml"
expected-failure: "true"
- env-paths: "envs/env1.yaml"
policy-file: policy_no_extra_options.yaml
expected-failure: "false"

steps:
- name: clone the repository
Expand All @@ -67,7 +73,7 @@ jobs:
id: action-run
continue-on-error: true
with:
policy: policy.yaml
policy: ${{ matrix.policy-file }}
environment-paths: ${{ matrix.env-paths }}
today: 2024-12-20
- name: detect outcome
Expand Down
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,17 @@ policy:
- package4
```

then add a new step to CI:
If there are no packages with `overrides`, `exclude`, or `ignored_violations`, you can set
them to an empty mapping or sequence, respectively:

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

Then add a new step to CI:

```yaml
jobs:
Expand Down
14 changes: 14 additions & 0 deletions policy_no_extra_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
channels:
- conda-forge
platforms:
- noarch
- linux-64
policy:
# all packages in months
packages:
python: 30
numpy: 18
default: 12
overrides: {}
exclude: []
ignored_violations: []
Loading