Skip to content

Commit 846640c

Browse files
committed
Add n parameter
1 parent 8c488c0 commit 846640c

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
| `timeout` | false | 30 | timeout in seconds |
4444
| `tags` | false | "" | tags to be tested (e.g., "docker,required") |
4545
| `n` | false | "" | specify tests by their numbers (e.g., "1-5,10,13") |
46+
| `s` | false | "" | specify tests by their names (e.g., "test_a,test_b") |
4647
| `extra` | false | "" | extra arguments for the given CWL runner |
4748
| `skip-python-install` | false | false | skip installing python interpreter |
4849

action.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ inputs:
2727
n:
2828
description: 'specify tests by their numbers (e.g., "1-5,10,13")'
2929
required: false
30+
s:
31+
description: 'specify tests by their names (e.g., "test_a,test_b")'
32+
required: false
3033
extra:
3134
description: 'extra arguments for the given CWL runner'
3235
required: false
@@ -90,11 +93,15 @@ runs:
9093
nopt="-n=${{ inputs.n }}"
9194
fi
9295
96+
if [ -n "${{ inputs.s }}" ]; then
97+
sopt="-s=${{ inputs.s }}"
98+
fi
99+
93100
if [ -n "${{ inputs.extra }}" ]; then
94101
extraopt="EXTRA=${{ inputs.extra }}"
95102
fi
96103
97-
./run_test.sh RUNNER=${{inputs.runner}} --badgedir=$basedir/badges --junit-xml=$basedir/junit.xml --timeout=${{inputs.timeout}} $tagopt $nopt "$extraopt" || true
104+
./run_test.sh RUNNER=${{inputs.runner}} --badgedir=$basedir/badges --junit-xml=$basedir/junit.xml --timeout=${{inputs.timeout}} $tagopt $nopt $sopt "$extraopt" || true
98105
echo "badgedir=$GITHUB_WORKSPACE/cwl-run-conformance-${{ inputs.cwlVersion }}/badges" >> $GITHUB_OUTPUT
99106
echo "result=$GITHUB_WORKSPACE/cwl-run-conformance-${{ inputs.cwlVersion }}/junit.xml" >> $GITHUB_OUTPUT
100107
env:

0 commit comments

Comments
 (0)