From 2248c6d3d2943b63a811f698a04020430d862e44 Mon Sep 17 00:00:00 2001 From: Henrik Bengtsson Date: Sun, 28 Apr 2024 14:37:39 -0700 Subject: [PATCH] TESTS: Fix minor mistakes in CLI test titles + make it possible to launch GitHub Action jobs manually --- .github/workflows/check-javascript.yml | 3 +++ .github/workflows/check-python.yml | 4 +++- .github/workflows/check-r.yml | 2 ++ tests-cli/90.exceptions.bats | 12 ++++++------ 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/check-javascript.yml b/.github/workflows/check-javascript.yml index 8653329..ed07465 100644 --- a/.github/workflows/check-javascript.yml +++ b/.github/workflows/check-javascript.yml @@ -3,11 +3,14 @@ on: pull_request: + workflow_dispatch: + schedule: ## Run every 12 hours # - cron: '0 */12 * * *' ## Run once a week until https://github.com/seguid/seguid-javascript/issues/17 - cron: '0 0 1 * *' + name: "JavaScript checks" diff --git a/.github/workflows/check-python.yml b/.github/workflows/check-python.yml index 3655e90..2d6c1c0 100644 --- a/.github/workflows/check-python.yml +++ b/.github/workflows/check-python.yml @@ -3,10 +3,12 @@ on: pull_request: + workflow_dispatch: + schedule: ## Run every 12 hours - cron: '0 */12 * * *' - + name: "Python checks" permissions: diff --git a/.github/workflows/check-r.yml b/.github/workflows/check-r.yml index 638b5a5..40cef9f 100644 --- a/.github/workflows/check-r.yml +++ b/.github/workflows/check-r.yml @@ -3,6 +3,8 @@ on: pull_request: + workflow_dispatch: + schedule: ## Run every 12 hours - cron: '0 */12 * * *' diff --git a/tests-cli/90.exceptions.bats b/tests-cli/90.exceptions.bats index 690073f..f67e785 100644 --- a/tests-cli/90.exceptions.bats +++ b/tests-cli/90.exceptions.bats @@ -142,32 +142,32 @@ assert_failure ## -------------------------------------------------------- ## Invalid alphabet specifications ## -------------------------------------------------------- -@test " --alphabet='{dna}' <<< 'ACGT' (unknown alphabet)" { +@test " --alphabet='{dna}' <<< 'ACGT' (unknown alphabet)" { run "${cli_call[@]}" --alphabet='{dna}' <<< 'ACGT' assert_failure } -@test " --alphabet='A,G ,C,T' <<< 'ACGT' (extra space)" { +@test " --alphabet='A,G ,C,T' <<< 'ACGT' (extra space)" { run "${cli_call[@]}" --alphabet='A,G ,C,T' <<< 'ACGT' assert_failure } -@test " --alphabet='' <<< 'ACGT' (empty alphabet specification)" { +@test " --alphabet='' <<< 'ACGT' (empty alphabet specification)" { run "${cli_call[@]}" --type=lsseguid --alphabet='' <<< 'ACGT' assert_failure } -@test " --alphabet='A,GC,T' <<< 'ACGT' (invalid alphabet specification)" { +@test " --alphabet='A,GC,T' <<< 'ACGT' (invalid alphabet specification)" { run "${cli_call[@]}" --type=lsseguid --alphabet='A,GC,T' <<< 'ACGT' assert_failure } -@test " --alphabet='ACG' <<< 'ACGT' (invalid alphabet specification)" { +@test " --alphabet='ACG' <<< 'ACGT' (invalid alphabet specification)" { run "${cli_call[@]}" --type=lsseguid --alphabet='ACG' <<< 'ACGT' assert_failure } -@test " --type=ldseguid --alphabet='A,G,C,T' <<< 'ACGT;ACGT' (single-stranded alphabet for a double-stranded sequence)" { +@test " --type=ldseguid --alphabet='A,G,C,T' <<< 'ACGT;ACGT' (single-stranded alphabet for a double-stranded sequence)" { run "${cli_call[@]}" --type=ldseguid --alphabet='A,G,C,T' <<< 'ACGT;ACGT' assert_failure }