https://github.com/common-workflow-lab/run-tests
Action for running tests for CWL workflows
https://github.com/common-workflow-lab/run-tests
common-workflow-language commonwl cwl testing
Last synced: about 1 month ago
JSON representation
Action for running tests for CWL workflows
- Host: GitHub
- URL: https://github.com/common-workflow-lab/run-tests
- Owner: common-workflow-lab
- License: apache-2.0
- Created: 2022-02-01T05:58:01.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-03-29T09:50:38.000Z (almost 2 years ago)
- Last Synced: 2025-03-10T09:42:34.109Z (about 1 year ago)
- Topics: common-workflow-language, commonwl, cwl, testing
- Homepage:
- Size: 21.5 KB
- Stars: 1
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# run-tests
It is a custom Github Action for running tests for CWL workflows.
## Example
```yaml
jobs:
test:
runs-on: ubuntu-latest
steps:
# setup CWL runner
- uses: actions/checkout@v4
- name: Setup python for cwltool
uses: actions/setup-python@v5
with:
python-version: '3.12.x'
- name: Install cwltool
run: pip install cwltool
- uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Run tests
id: run-tests
uses: common-workflow-lab/run-tests@v1
with:
test-list: test.yml
runner: cwltool
timeout: 30
result-title: Example test results
- name: Do something with resulted JUnit XML file
run: |
echo ${{ steps.run-conformance.outputs.result }}
```
## Input parameters
| Parameters | Required | Default | Description |
|---|---|---|---|
| `test-list` | true | - | file that lists test cases in cwltest format |
| `runner` | true | - | full path to CWL runner to be tested |
| `timeout` | false | 30 | timeout in seconds |
| `skip-python-install` | false | false | skip installing python interpreter |
| `allow-failure` | false | false | whether this action always succeeds even if some tests fail |
| `result-title` | false | `"Test result"` | title for test result |
The `skip-python-install` parameter is useful when CWL runner requires specific version of Python.
## Output parameters
| Parameters | Description |
|---|---|
| `result` | file name that stores the result of tests in JUnit XML format |