File tree Expand file tree Collapse file tree 3 files changed +32
-2
lines changed Expand file tree Collapse file tree 3 files changed +32
-2
lines changed Original file line number Diff line number Diff line change @@ -50,14 +50,20 @@ jobs:
5050 envs/env1.yaml
5151 envs/env2.yaml
5252 expected-failure : ["false"]
53+ policy-file : ["policy.yaml"]
5354 include :
5455 - env-paths : |
5556 envs/failing-env1.yaml
57+ policy-file: "policy.yaml"
5658 expected-failure: "true"
5759 - env-paths : |
5860 envs/env1.yaml
5961 envs/failing-env1.yaml
62+ policy-file: "policy.yaml"
6063 expected-failure: "true"
64+ - env-paths : " envs/env1.yaml"
65+ policy-file : policy_no_extra_options.yaml
66+ expected-failure : " false"
6167
6268 steps :
6369 - name : clone the repository
6773 id : action-run
6874 continue-on-error : true
6975 with :
70- policy : policy.yaml
76+ policy : ${{ matrix.policy-file }}
7177 environment-paths : ${{ matrix.env-paths }}
7278 today : 2024-12-20
7379 - name : detect outcome
Original file line number Diff line number Diff line change @@ -32,7 +32,17 @@ policy:
3232 - package4
3333` ` `
3434
35- then add a new step to CI:
35+ If there are no packages with ` overrides`, `exclude`, or `ignored_violations`, you can set
36+ them to an empty mapping or sequence, respectively :
37+
38+ ` ` ` yaml
39+ ...
40+ overrides: {}
41+ exclude: []
42+ ignored_violations: []
43+ ` ` `
44+
45+ Then add a new step to CI :
3646
3747` ` ` yaml
3848jobs:
Original file line number Diff line number Diff line change 1+ channels :
2+ - conda-forge
3+ platforms :
4+ - noarch
5+ - linux-64
6+ policy :
7+ # all packages in months
8+ packages :
9+ python : 30
10+ numpy : 18
11+ default : 12
12+ overrides : {}
13+ exclude : []
14+ ignored_violations : []
You can’t perform that action at this time.
0 commit comments