You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Command to extract a subgraph from a workflow.
* New options: --print-subgraph, --print--targets and --target
* Extracting a step connects workflow inputs to satisfy dependencies
This means in the extracted workflow, execution will start from the
extracted step (provided dependencies are supplied in the input
object.)
* Reorganized README. Documentation for --target and related features.
Improve --print-targets
Hopefully fix tests.
@@ -67,37 +67,9 @@ Remember, if co-installing multiple CWL implementations then you need to
67
67
maintain which implementation ``cwl-runner`` points to via a symbolic file
68
68
system link or `another facility <https://wiki.debian.org/DebianAlternatives>`_.
69
69
70
-
Running tests locally
71
-
---------------------
72
-
73
-
- Running basic tests ``(/tests)``:
74
-
75
-
To run the basis tests after installing `cwltool` execute the following:
76
-
77
-
.. code:: bash
78
-
79
-
pip install -rtest-requirements.txt
80
-
py.test --ignore cwltool/schemas/ --pyarg cwltool
81
-
82
-
To run various tests in all supported Python environments we use `tox <https://github.com/common-workflow-language/cwltool/tree/master/tox.ini>`_. To run the test suite in all supported Python environments
83
-
first downloading the complete code repository (see the ``git clone`` instructions above) and then run
84
-
the following in the terminal:
85
-
``pip install tox; tox``
86
-
87
-
List of all environment can be seen using:
88
-
``tox --listenvs``
89
-
and running a specfic test env using:
90
-
``tox -e <env name>``
91
-
and additionally run a specific test using this format:
- Running the entire suite of CWL conformance tests:
95
-
96
-
The GitHub repository for the CWL specifications contains a script that tests a CWL
97
-
implementation against a wide array of valid CWL files using the `cwltest <https://github.com/common-workflow-language/cwltest>`_
98
-
program
99
-
100
-
Instructions for running these tests can be found in the Common Workflow Language Specification repository at https://github.com/common-workflow-language/common-workflow-language/blob/master/CONFORMANCE_TESTS.md
70
+
=====
71
+
Usage
72
+
=====
101
73
102
74
Run on the command line
103
75
-----------------------
@@ -158,8 +130,8 @@ To use Singularity as the Docker container runtime, provide ``--singularity`` co
The ``--print-dot`` option will print a file suitable for Graphviz ``dot`` program. Here is a bash onliner to generate a Scalable Vector Graphic (SVG) file:
To run the basis tests after installing `cwltool` execute the following:
466
498
467
499
.. code:: bash
468
500
469
-
cwltool my-tool.cwl my-job-with-overrides.yml
501
+
pip install -rtest-requirements.txt
502
+
py.test --ignore cwltool/schemas/ --pyarg cwltool
503
+
504
+
To run various tests in all supported Python environments we use `tox <https://github.com/common-workflow-language/cwltool/tree/master/tox.ini>`_. To run the test suite in all supported Python environments
505
+
first downloading the complete code repository (see the ``git clone`` instructions above) and then run
506
+
the following in the terminal:
507
+
``pip install tox; tox``
508
+
509
+
List of all environment can be seen using:
510
+
``tox --listenvs``
511
+
and running a specfic test env using:
512
+
``tox -e <env name>``
513
+
and additionally run a specific test using this format:
- Running the entire suite of CWL conformance tests:
517
+
518
+
The GitHub repository for the CWL specifications contains a script that tests a CWL
519
+
implementation against a wide array of valid CWL files using the `cwltest <https://github.com/common-workflow-language/cwltest>`_
520
+
program
521
+
522
+
Instructions for running these tests can be found in the Common Workflow Language Specification repository at https://github.com/common-workflow-language/common-workflow-language/blob/master/CONFORMANCE_TESTS.md
523
+
524
+
Import as a module
525
+
------------------
526
+
527
+
Add
528
+
529
+
.. code:: python
530
+
531
+
import cwltool
532
+
533
+
to your script.
534
+
535
+
The easiest way to use cwltool to run a tool or workflow from Python is to use a Factory
0 commit comments