File tree Expand file tree Collapse file tree 4 files changed +23
-7
lines changed Expand file tree Collapse file tree 4 files changed +23
-7
lines changed Original file line number Diff line number Diff line change 50
50
envs/env1.yaml
51
51
envs/env2.yaml
52
52
expected-failure : ["false"]
53
+ policy-file : ["policy.yaml"]
53
54
include :
54
55
- env-paths : |
55
56
envs/failing-env1.yaml
58
59
envs/env1.yaml
59
60
envs/failing-env1.yaml
60
61
expected-failure: "true"
62
+ - env-paths : " envs/env3.yaml"
63
+ policy-file : policy_no_extra_options.yaml
61
64
62
65
steps :
63
66
- name : clone the repository
67
70
id : action-run
68
71
continue-on-error : true
69
72
with :
70
- policy : policy.yaml
73
+ policy : ${{ matrix.policy-file }}
71
74
environment-paths : ${{ matrix.env-paths }}
72
75
today : 2024-12-20
73
76
- name : detect outcome
Original file line number Diff line number Diff line change
1
+ channels :
2
+ - conda-forge
3
+ dependencies :
4
+ - python=3.10
5
+ - numpy=1.24
Original file line number Diff line number Diff line change 52
52
"required" : [
53
53
"packages" ,
54
54
"default" ,
55
- "overrides" ,
56
- "exclude" ,
57
- "ignored_violations" ,
58
55
],
59
56
},
60
57
},
@@ -167,11 +164,11 @@ def parse_policy(file):
167
164
return Policy (
168
165
channels = policy ["channels" ],
169
166
platforms = policy ["platforms" ],
170
- exclude = package_policy [ "exclude" ] ,
167
+ exclude = package_policy . get ( "exclude" , {}) ,
171
168
package_months = package_policy ["packages" ],
172
169
default_months = package_policy ["default" ],
173
- ignored_violations = package_policy [ "ignored_violations" ] ,
174
- overrides = package_policy [ "overrides" ] ,
170
+ ignored_violations = package_policy . get ( "ignored_violations" , {}) ,
171
+ overrides = package_policy . get ( "overrides" , {}) ,
175
172
)
176
173
177
174
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
You can’t perform that action at this time.
0 commit comments