Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ name: CI
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
branches: [ main, 1.2.1_proposed ]
pull_request:
branches: [ main ]
branches: [ main, 1.2.1_proposed ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/cwltool.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: test_with_cwltool

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main, 1.2.1_proposed ]
pull_request:
branches: [ main, 1.2.1_proposed ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
test_with_cwltool:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2
with:
python-version: '3.9.x'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess cwltool itself needs to be tested with multiple Python versions, but for this repository just 3.9.x line is OK.


- name: Setup prerequirements
run: pip install cwltest cwltool

- name: Run tests against the reference runner
run: ./run_test.sh RUNNER=cwltool EXTRA=--parallel -j$(nproc)
2 changes: 1 addition & 1 deletion tests/binding-test.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class: CommandLineTool
cwlVersion: v1.2
hints:
- class: DockerRequirement
dockerPull: python:2-slim
dockerPull: docker.io/python:3-slim
inputs:
- id: reference
type: File
Expand Down
2 changes: 1 addition & 1 deletion tests/bool-empty-inputbinding.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class: CommandLineTool
cwlVersion: v1.2
hints:
- class: DockerRequirement
dockerPull: python:2-slim
dockerPull: docker.io/python:3-slim
inputs:
- id: flag
type: boolean
Expand Down
2 changes: 1 addition & 1 deletion tests/bwa-mem-tool.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ hints:
- class: ResourceRequirement
coresMin: 2
- class: DockerRequirement
dockerPull: python:2-slim
dockerPull: docker.io/python:3-slim

inputs:
- id: reference
Expand Down
2 changes: 1 addition & 1 deletion tests/cat-tool-shortcut.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cwlVersion: v1.2

requirements:
- class: DockerRequirement
dockerPull: debian:stretch-slim
dockerPull: docker.io/debian:stable-slim

inputs:
file1: stdin
Expand Down
2 changes: 1 addition & 1 deletion tests/cat3-tool-docker.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cwlVersion: v1.2
doc: "Print the contents of a file to stdout using 'cat' running in a docker container."
requirements:
DockerRequirement:
dockerPull: debian:stretch-slim
dockerPull: docker.io/debian:stable-slim
inputs:
file1:
type: File
Expand Down
2 changes: 1 addition & 1 deletion tests/cat3-tool-mediumcut.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cwlVersion: v1.2
doc: "Print the contents of a file to stdout using 'cat' running in a docker container."
requirements:
DockerRequirement:
dockerPull: debian:stretch-slim
dockerPull: docker.io/debian:stable-slim
inputs:
file1:
type: File
Expand Down
2 changes: 1 addition & 1 deletion tests/cat3-tool-shortcut.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cwlVersion: v1.2
doc: "Print the contents of a file to stdout using 'cat' running in a docker container."
requirements:
DockerRequirement:
dockerPull: debian:stretch-slim
dockerPull: docker.io/debian:stable-slim
inputs:
file1:
type: File
Expand Down
2 changes: 1 addition & 1 deletion tests/cat3-tool.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cwlVersion: v1.2
doc: "Print the contents of a file to stdout using 'cat' running in a docker container."
hints:
DockerRequirement:
dockerPull: debian:stretch-slim
dockerPull: docker.io/debian:stable-slim
inputs:
file1:
type: File
Expand Down
2 changes: 1 addition & 1 deletion tests/cat4-tool.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cwlVersion: v1.2
doc: "Print the contents of a file to stdout using 'cat' running in a docker container if docker is available."
hints:
DockerRequirement:
dockerPull: debian:stretch-slim
dockerPull: docker.io/debian:stable-slim
inputs:
file1: File
outputs:
Expand Down
2 changes: 1 addition & 1 deletion tests/cat5-tool.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class: CommandLineTool
doc: "Print the contents of a file to stdout using 'cat' running in a docker container."
hints:
DockerRequirement:
dockerPull: "debian:stretch-slim"
dockerPull: docker.io/debian:stable-slim
ex:BlibberBlubberFakeRequirement:
fakeField: fraggleFroogle
inputs:
Expand Down
2 changes: 1 addition & 1 deletion tests/dir2.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ requirements:
ShellCommandRequirement: {}
hints:
DockerRequirement:
dockerPull: debian:stretch-slim
dockerPull: docker.io/debian:stable-slim
inputs:
indir: Directory
outputs:
Expand Down
2 changes: 1 addition & 1 deletion tests/docker-array-secondaryfiles.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cwlVersion: v1.2

requirements:
- class: DockerRequirement
dockerPull: debian:stretch-slim
dockerPull: docker.io/debian:stable-slim
- class: InlineJavascriptRequirement
- class: ShellCommandRequirement

Expand Down
2 changes: 1 addition & 1 deletion tests/docker-output-dir.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class: CommandLineTool
cwlVersion: v1.2
requirements:
DockerRequirement:
dockerPull: debian:stretch-slim
dockerPull: docker.io/debian:stable-slim
dockerOutputDirectory: /other
inputs: []
outputs:
Expand Down
2 changes: 1 addition & 1 deletion tests/docker-run-cmd.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class: CommandLineTool
cwlVersion: v1.2
requirements:
DockerRequirement:
dockerPull: bash:4.4.12
dockerPull: docker.io/bash:4.4
inputs: []
outputs:
cow:
Expand Down
2 changes: 1 addition & 1 deletion tests/empty-array-input.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class: CommandLineTool

hints:
- class: DockerRequirement
dockerPull: python:2-slim
dockerPull: docker.io/python:3-slim

inputs:
- id: array
Expand Down
2 changes: 1 addition & 1 deletion tests/envvar2.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ requirements:
ShellCommandRequirement: {}
hints:
DockerRequirement:
dockerPull: debian:stretch-slim
dockerPull: docker.io/debian:stable-slim
arguments: [
echo, {valueFrom: '"HOME=$HOME"', shellQuote: false}, {valueFrom: '"TMPDIR=$TMPDIR"', shellQuote: false},
{valueFrom: '&&', shellQuote: false},
Expand Down
2 changes: 1 addition & 1 deletion tests/envvar3.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ requirements:
ShellCommandRequirement: {}
hints:
DockerRequirement:
dockerPull: debian:stretch-slim
dockerPull: docker.io/debian:stable-slim
arguments:
- shellQuote: false
valueFrom: |
Expand Down
2 changes: 1 addition & 1 deletion tests/formattest2.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ cwlVersion: v1.2
doc: "Reverse each line using the `rev` command"
hints:
DockerRequirement:
dockerPull: "debian:stretch-slim"
dockerPull: docker.io/debian:stable-slim

inputs:
input:
Expand Down
2 changes: 1 addition & 1 deletion tests/formattest3.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ cwlVersion: v1.2
doc: "Reverse each line using the `rev` command"
hints:
DockerRequirement:
dockerPull: "debian:stretch-slim"
dockerPull: docker.io/debian:stable-slim

inputs:
input:
Expand Down
2 changes: 1 addition & 1 deletion tests/glob-path-error.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cwlVersion: v1.2

requirements:
- class: DockerRequirement
dockerPull: debian:stretch-slim
dockerPull: docker.io/debian:stable-slim

class: CommandLineTool

Expand Down
2 changes: 1 addition & 1 deletion tests/initialworkdirrequirement-docker-out.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cwlVersion: v1.2

requirements:
- class: DockerRequirement
dockerPull: debian:stretch-slim
dockerPull: docker.io/debian:stable-slim
- class: InitialWorkDirRequirement
listing:
- $(inputs.INPUT)
Expand Down
2 changes: 1 addition & 1 deletion tests/inline-js.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ requirements:
- class: InlineJavascriptRequirement
hints:
- class: DockerRequirement
dockerPull: python:2-slim
dockerPull: docker.io/python:3-slim

inputs:
- id: args.py
Expand Down
2 changes: 1 addition & 1 deletion tests/iwd/iwd-container-entryname1.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ outputs:
glob: head.txt
requirements:
DockerRequirement:
dockerPull: "debian:10"
dockerPull: docker.io/debian:stable-slim
dockerOutputDirectory: /output
InitialWorkDirRequirement:
listing:
Expand Down
2 changes: 1 addition & 1 deletion tests/iwd/iwd-container-entryname3.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ outputs:
glob: head.txt
hints:
DockerRequirement:
dockerPull: "debian:10"
dockerPull: docker.io/debian:stable-slim
dockerOutputDirectory: /output
requirements:
InitialWorkDirRequirement:
Expand Down
2 changes: 1 addition & 1 deletion tests/iwd/iwd-passthrough2.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ doc: |

requirements:
DockerRequirement:
dockerPull: "python:3-slim"
dockerPull: docker.io/python:3-slim
InitialWorkDirRequirement:
listing:
- entryname: "renamed-filelist.txt"
Expand Down
2 changes: 1 addition & 1 deletion tests/iwd/iwdr_dir_literal_real_file.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cwlVersion: v1.2

requirements:
DockerRequirement:
dockerPull: debian:stable-slim
dockerPull: docker.io/debian:stable-slim
InlineJavascriptRequirement: {}
InitialWorkDirRequirement:
listing: |
Expand Down
2 changes: 1 addition & 1 deletion tests/loadContents/cwloutput-nolimit.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class: CommandLineTool
cwlVersion: v1.2
requirements:
DockerRequirement:
dockerPull: "python:3-slim"
dockerPull: docker.io/python:3-slim
inputs:
script:
type: File
Expand Down
2 changes: 1 addition & 1 deletion tests/metadata.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dct:creator:

hints:
DockerRequirement:
dockerPull: debian:stretch-slim
dockerPull: docker.io/debian:stable-slim
inputs:
file1:
type: File
Expand Down
2 changes: 1 addition & 1 deletion tests/networkaccess.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class: CommandLineTool
cwlVersion: v1.2
requirements:
DockerRequirement:
dockerPull: python:3
dockerPull: docker.io/python:3-slim
NetworkAccess:
networkAccess: true
inputs: []
Expand Down
2 changes: 1 addition & 1 deletion tests/networkaccess2.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class: CommandLineTool
cwlVersion: v1.2
requirements:
DockerRequirement:
dockerPull: python:3
dockerPull: docker.io/python:3-slim
inputs: []
outputs: []
baseCommand: python
Expand Down
2 changes: 1 addition & 1 deletion tests/no-inputs-tool.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cwlVersion: v1.2
doc: "CommandLineTool without inputs."
hints:
DockerRequirement:
dockerPull: debian:stretch-slim
dockerPull: docker.io/debian:stable-slim
inputs: []
outputs:
output:
Expand Down
2 changes: 1 addition & 1 deletion tests/no-inputs-wf.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ steps:
doc: "CommandLineTool without inputs."
hints:
DockerRequirement:
dockerPull: debian:stretch-slim
dockerPull: docker.io/debian:stable-slim
inputs: []
outputs:
output:
Expand Down
2 changes: 1 addition & 1 deletion tests/no-outputs-tool.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cwlVersion: v1.2
doc: "CommandLineTool without outputs."
hints:
DockerRequirement:
dockerPull: debian:stretch-slim
dockerPull: docker.io/debian:stable-slim
inputs:
file1:
type: File
Expand Down
2 changes: 1 addition & 1 deletion tests/no-outputs-wf.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ steps:
doc: "CommandLineTool without outputs."
hints:
DockerRequirement:
dockerPull: debian:stretch-slim
dockerPull: docker.io/debian:stable-slim
inputs:
file1:
type: File
Expand Down
2 changes: 1 addition & 1 deletion tests/optional-output.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cwlVersion: "v1.2"
doc: "Print the contents of a file to stdout using 'cat' running in a docker container."
hints:
DockerRequirement:
dockerPull: debian:stretch-slim
dockerPull: docker.io/debian:stable-slim
inputs:
file1:
type: File
Expand Down
2 changes: 1 addition & 1 deletion tests/revsort.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ cwlVersion: v1.2
# in which the command line tools will execute.
hints:
- class: DockerRequirement
dockerPull: debian:stretch-slim
dockerPull: docker.io/debian:stable-slim


# The inputs array defines the structure of the input object that describes
Expand Down
4 changes: 2 additions & 2 deletions tests/search.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $graph:
- class: InlineJavascriptRequirement
hints:
- class: DockerRequirement
dockerPull: python:2-slim
dockerPull: docker.io/python:3-slim

inputs:
file: File
Expand Down Expand Up @@ -48,7 +48,7 @@ $graph:
- class: InlineJavascriptRequirement
hints:
- class: DockerRequirement
dockerPull: python:2-slim
dockerPull: docker.io/python:3-slim
inputs:
file:
type: File
Expand Down
2 changes: 1 addition & 1 deletion tests/stage-unprovided-file.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cwlVersion: v1.2
class: CommandLineTool
hints:
- class: DockerRequirement
dockerPull: python:2-slim
dockerPull: docker.io/python:3-slim
inputs:
- id: infile
type: File?
Expand Down
Loading