mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2025-01-03 04:52:09 -05:00
ci: Cut out the middle man
This commit is contained in:
parent
c4606991ae
commit
f2825f7f02
1 changed files with 4 additions and 7 deletions
11
.github/workflows/pytest-workflow.yml
vendored
11
.github/workflows/pytest-workflow.yml
vendored
|
@ -8,7 +8,7 @@ jobs:
|
|||
outputs:
|
||||
# Expose matched filters as job 'modules' output variable
|
||||
modules: ${{ steps.filter.outputs.changes }}
|
||||
proceed: ${{ steps.less_than.outputs.proceed }}
|
||||
proceed: ${{ steps.yq_modules.outputs.proceed }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: dorny/paths-filter@v2
|
||||
|
@ -16,17 +16,14 @@ jobs:
|
|||
with:
|
||||
filters: 'tests/config/pytest_software.yml'
|
||||
|
||||
# 256 max jobs / 2 nxf versions / 3 profiles
|
||||
- uses: mikefarah/yq@v4.6.3
|
||||
name: Install yq
|
||||
name: Fail if number of modules to be tested is greater than 42
|
||||
id: yq_modules
|
||||
with:
|
||||
cmd: |
|
||||
output=$(echo ${{ steps.filter.outputs.changes }} | yq e 'length' -)
|
||||
echo "::set-output name=magic_number::$output"
|
||||
# 256 max jobs / 2 nxf versions / 3 profiles
|
||||
- name: Fail if number of modules to be tested is greater than 42
|
||||
id: less_than
|
||||
run: echo "::set-output name=proceed::$(test ${{ steps.yq_modules.outputs.magic_number }} -lt 42 )"
|
||||
echo "::set-output name=proceed::$(if (test $output -lt 42); then echo 0; fi)"
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue