Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@ policy:
- package4
```

if there are no packages with `overrides`, `exclude`, or `ignored_violations`, you can set
them to an empty dictionary or list, respectively:

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

then add a new step to CI:

```yaml
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