Skip to content

Commit

Permalink
workflows: replace run_all_tests with a choice
Browse files Browse the repository at this point in the history
Make it possible to run short tests manually.

Signed-off-by: Roman Khimov <[email protected]>
  • Loading branch information
roman-khimov committed Dec 4, 2024
1 parent f831c75 commit 5b69d58
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,15 @@ on:
description: 'neofs-testcases ref. Default: master. Examples: v0.36.0, 8fdcc6d7e798e6511be8806b81894622e72d7fdc, branch_name'
required: false
default: 'master'
run_all_tests:
description: 'Force running all tests, by default PRs trigger sanity test runs only'
test_set:
description: 'Test suite to run, default depends on trigger and is "sanity" for PRs'
required: false
default: 'false'
type: choice
options:
- all
- default
- sanity
default: 'default'

permissions: write-all

Expand All @@ -44,7 +49,7 @@ jobs:
neofs_other_expiration_period: ${{ vars.OTHER_EXPIRATION_PERIOD }}
neofs_testcases_commit: ${{ github.event.inputs.neofs_testcases_ref }}
neofs_node_commit: ${{ github.event.inputs.neofs_node_ref }}
marks: ${{ !github.event.inputs.run_all_tests && github.event_name == 'pull_request' && 'sanity' || '' }}
marks: ${{ (github.event.inputs.test_set == 'sanity' || (github.event.inputs.test_set == 'default' && github.event_name == 'pull_request')) && 'sanity' || '' }}
tests_parallel_level: 3
os: '[{runner: "ubuntu-latest", binary: "linux-amd64"}, {runner: "macos-14", binary: "darwin-arm64"}]'
secrets: inherit

0 comments on commit 5b69d58

Please sign in to comment.