@@ -187,7 +187,12 @@ def test_sphinx_rst_files(self):
187
187
test_actions_branch_protection_fail ,
188
188
test_actions_branch_protection_ignore ,
189
189
)
190
- from lint .actions_ci import test_actions_ci_pass , test_actions_ci_fail
190
+ from lint .actions_ci import (
191
+ test_actions_ci_pass ,
192
+ test_actions_ci_fail_wrong_nf ,
193
+ test_actions_ci_fail_wrong_docker_ver ,
194
+ test_actions_ci_fail_wrong_trigger ,
195
+ )
191
196
192
197
193
198
# def test_critical_missingfiles_example(self):
@@ -236,52 +241,6 @@ def test_sphinx_rst_files(self):
236
241
# bad_lint_obj = nf_core.lint.PipelineLint("/non/existant/path")
237
242
# bad_lint_obj.check_nextflow_config()
238
243
#
239
- # def test_actions_wf_branch_pass(self):
240
- # """Tests that linting for GitHub Actions workflow for branch protection works for a good example"""
241
- # lint_obj = nf_core.lint.PipelineLint(PATH_WORKING_EXAMPLE)
242
- # lint_obj.pipeline_name = "tools"
243
- # lint_obj.check_actions_branch_protection()
244
- # expectations = {"failed": 0, "warned": 0, "passed": 2}
245
- # self.assess_lint_status(lint_obj, **expectations)
246
- #
247
- # def test_actions_wf_branch_fail(self):
248
- # """Tests that linting for GitHub Actions workflow for branch protection fails for a bad example"""
249
- # lint_obj = nf_core.lint.PipelineLint(PATH_FAILING_EXAMPLE)
250
- # lint_obj.pipeline_name = "tools"
251
- # lint_obj.check_actions_branch_protection()
252
- # expectations = {"failed": 2, "warned": 0, "passed": 0}
253
- # self.assess_lint_status(lint_obj, **expectations)
254
- #
255
- # def test_actions_wf_ci_pass(self):
256
- # """Tests that linting for GitHub Actions CI workflow works for a good example"""
257
- # lint_obj = nf_core.lint.PipelineLint(PATH_WORKING_EXAMPLE)
258
- # lint_obj.minNextflowVersion = "20.04.0"
259
- # lint_obj.pipeline_name = "tools"
260
- # lint_obj.config["process.container"] = "'nfcore/tools:0.4'"
261
- # lint_obj.check_actions_ci()
262
- # expectations = {"failed": 0, "warned": 0, "passed": 5}
263
- # self.assess_lint_status(lint_obj, **expectations)
264
- #
265
- # def test_actions_wf_ci_fail(self):
266
- # """Tests that linting for GitHub Actions CI workflow fails for a bad example"""
267
- # lint_obj = nf_core.lint.PipelineLint(PATH_FAILING_EXAMPLE)
268
- # lint_obj.minNextflowVersion = "20.04.0"
269
- # lint_obj.pipeline_name = "tools"
270
- # lint_obj.config["process.container"] = "'nfcore/tools:0.4'"
271
- # lint_obj.check_actions_ci()
272
- # expectations = {"failed": 5, "warned": 0, "passed": 0}
273
- # self.assess_lint_status(lint_obj, **expectations)
274
- #
275
- # def test_actions_wf_ci_fail_wrong_NF_version(self):
276
- # """Tests that linting for GitHub Actions CI workflow fails for a bad NXF version"""
277
- # lint_obj = nf_core.lint.PipelineLint(PATH_WORKING_EXAMPLE)
278
- # lint_obj.minNextflowVersion = "0.28.0"
279
- # lint_obj.pipeline_name = "tools"
280
- # lint_obj.config["process.container"] = "'nfcore/tools:0.4'"
281
- # lint_obj.check_actions_ci()
282
- # expectations = {"failed": 1, "warned": 0, "passed": 4}
283
- # self.assess_lint_status(lint_obj, **expectations)
284
- #
285
244
# def test_actions_wf_lint_pass(self):
286
245
# """Tests that linting for GitHub Actions linting wf works for a good example"""
287
246
# lint_obj = nf_core.lint.PipelineLint(PATH_WORKING_EXAMPLE)
@@ -296,20 +255,6 @@ def test_sphinx_rst_files(self):
296
255
# expectations = {"failed": 3, "warned": 0, "passed": 0}
297
256
# self.assess_lint_status(lint_obj, **expectations)
298
257
#
299
- # def test_actions_wf_awstest_pass(self):
300
- # """Tests that linting for GitHub Actions AWS test wf works for a good example"""
301
- # lint_obj = nf_core.lint.PipelineLint(PATH_WORKING_EXAMPLE)
302
- # lint_obj.check_actions_awstest()
303
- # expectations = {"failed": 0, "warned": 0, "passed": 1}
304
- # self.assess_lint_status(lint_obj, **expectations)
305
- #
306
- # def test_actions_wf_awstest_fail(self):
307
- # """Tests that linting for GitHub Actions AWS test wf fails for a bad example"""
308
- # lint_obj = nf_core.lint.PipelineLint(PATH_FAILING_EXAMPLE)
309
- # lint_obj.check_actions_awstest()
310
- # expectations = {"failed": 1, "warned": 0, "passed": 0}
311
- # self.assess_lint_status(lint_obj, **expectations)
312
- #
313
258
# def test_wrong_license_examples_with_failed(self):
314
259
# """Tests for checking the license test behavior"""
315
260
# for example in PATHS_WRONG_LICENSE_EXAMPLE:
0 commit comments