Skip to content

Commit 2add3a2

Browse files
authored
Merge pull request #2 from common-workflow-lab/add-tags
Add `tags` option
2 parents 4b0e6e2 + cbda385 commit 2add3a2

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
| `cwlVersion` | true | - | target CWL version |
4242
| `runner` | true | - | full path to CWL runner to be tested |
4343
| `timeout` | false | 30 | timeout in seconds |
44+
| `tags` | false | "" | tags to be tested (e.g., "docker,required") |
4445
| `skip-python-install` | false | false | skip installing python interpreter |
4546

4647
The `skip-python-install` parameter is useful when CWL runner requires specific version of Python.

action.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ inputs:
2121
description: 'skip installing python interpreter'
2222
required: false
2323
default: false
24-
# TODO: EXTRA, -n, -j, --tags
24+
tags:
25+
description: 'tags to be tested (e.g., "docker,required")'
26+
required: false
27+
# TODO: EXTRA, -n, -j
2528
outputs:
2629
badgedir:
2730
description: 'The directory name that stores conformance badges'
@@ -72,7 +75,12 @@ runs:
7275
else
7376
basedir=.
7477
fi
75-
./run_test.sh RUNNER=${{inputs.runner}} --badgedir=$basedir/badges --junit-xml=$basedir/junit.xml --timeout=${{inputs.timeout}} || true
78+
79+
if [ -n "${{ inputs.tags }}" ]; then
80+
tagopt="--tags=${{ inputs.tags }}"
81+
fi
82+
83+
./run_test.sh RUNNER=${{inputs.runner}} --badgedir=$basedir/badges --junit-xml=$basedir/junit.xml --timeout=${{inputs.timeout}} $tagopt || true
7684
echo "::set-output name=badgedir::$GITHUB_WORKSPACE/cwl-run-conformance-${{ inputs.cwlVersion }}/badges"
7785
echo "::set-output name=result::$GITHUB_WORKSPACE/cwl-run-conformance-${{ inputs.cwlVersion }}/junit.xml"
7886
env:

0 commit comments

Comments
 (0)