Skip to content

Commit

Permalink
Add n parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-tan committed Apr 6, 2024
1 parent 8c488c0 commit 846640c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
| `timeout` | false | 30 | timeout in seconds |
| `tags` | false | "" | tags to be tested (e.g., "docker,required") |
| `n` | false | "" | specify tests by their numbers (e.g., "1-5,10,13") |
| `s` | false | "" | specify tests by their names (e.g., "test_a,test_b") |
| `extra` | false | "" | extra arguments for the given CWL runner |
| `skip-python-install` | false | false | skip installing python interpreter |

Expand Down
9 changes: 8 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ inputs:
n:
description: 'specify tests by their numbers (e.g., "1-5,10,13")'
required: false
s:
description: 'specify tests by their names (e.g., "test_a,test_b")'
required: false
extra:
description: 'extra arguments for the given CWL runner'
required: false
Expand Down Expand Up @@ -90,11 +93,15 @@ runs:
nopt="-n=${{ inputs.n }}"
fi
if [ -n "${{ inputs.s }}" ]; then
sopt="-s=${{ inputs.s }}"
fi
if [ -n "${{ inputs.extra }}" ]; then
extraopt="EXTRA=${{ inputs.extra }}"
fi
./run_test.sh RUNNER=${{inputs.runner}} --badgedir=$basedir/badges --junit-xml=$basedir/junit.xml --timeout=${{inputs.timeout}} $tagopt $nopt "$extraopt" || true
./run_test.sh RUNNER=${{inputs.runner}} --badgedir=$basedir/badges --junit-xml=$basedir/junit.xml --timeout=${{inputs.timeout}} $tagopt $nopt $sopt "$extraopt" || true
echo "badgedir=$GITHUB_WORKSPACE/cwl-run-conformance-${{ inputs.cwlVersion }}/badges" >> $GITHUB_OUTPUT
echo "result=$GITHUB_WORKSPACE/cwl-run-conformance-${{ inputs.cwlVersion }}/junit.xml" >> $GITHUB_OUTPUT
env:
Expand Down

0 comments on commit 846640c

Please sign in to comment.