File tree Expand file tree Collapse file tree 4 files changed +25
-7
lines changed Expand file tree Collapse file tree 4 files changed +25
-7
lines changed Original file line number Diff line number Diff line change 11[run]
22branch = True
3- source = cwlupgrader
3+ source_pkgs = cwlupgrader
4+ omit =
5+ tests/*
6+ */site-packages/cwlupgrader/tests/*
47
58[report]
69exclude_lines =
Original file line number Diff line number Diff line change @@ -123,11 +123,16 @@ jobs:
123123 - name : Set up Python
124124 uses : actions/setup-python@v6
125125 with :
126- python-version : 3.12
126+ python-version : 3.14
127127 cache : pip
128-
129128 - name : " Test upgrading CWL conformance tests & running them"
130129 run : ./conformance-test.sh
130+ - name : Upload coverage to Codecov
131+ uses : codecov/codecov-action@v5
132+ with :
133+ fail_ci_if_error : true
134+ token : ${{ secrets.CODECOV_TOKEN }}
135+
131136
132137 release_test :
133138 name : cwl-upgrader release test
@@ -139,7 +144,7 @@ jobs:
139144 - name : Set up Python
140145 uses : actions/setup-python@v6
141146 with :
142- python-version : 3.12
147+ python-version : 3.14
143148 cache : pip
144149 cache-dependency-path : |
145150 requirements.txt
Original file line number Diff line number Diff line change 8484
8585CONFORMANCE_TEST1=" ${SCRIPT_DIRECTORY} /common-workflow-language-main/v1.0/conformance_test_v1_0_to_v1_1.yaml"
8686CONFORMANCE_TEST2=" ${SCRIPT_DIRECTORY} /common-workflow-language-main/v1.0/conformance_test_v1_0_to_v1_2.yaml"
87+ COVBASE=" coverage run --append --rcfile=${SCRIPT_DIRECTORY} /.coveragerc --data-file=${SCRIPT_DIRECTORY} /.coverage -m cwlupgrader"
8788
8889pushd " ${SCRIPT_DIRECTORY} " /common-workflow-language-main/v1.0
8990cp -r v1.0 v1.1
9091cp -r v1.0 v1.2
9192rm v1.1/* .cwl
9293rm v1.2/* .cwl
9394set +x
94- pushd v1.0 ; cwl-upgrader --v1.1-only --dir ../v1.1 --always-write ./* .cwl; popd
95- pushd v1.0 ; cwl-upgrader --dir ../v1.2 --always-write ./* .cwl; popd
95+ pushd v1.0 ; $COVBASE --v1.1-only --dir ../v1.1 --always-write ./* .cwl; popd
96+ pushd v1.0 ; $COVBASE --dir ../v1.2 --always-write ./* .cwl; popd
9697set -x
9798cp conformance_test_v1.0.yaml " ${CONFORMANCE_TEST1} "
9899cp conformance_test_v1.0.yaml " ${CONFORMANCE_TEST2} "
99100sed -i ' s=v1.0/=v1.1/=g' " ${CONFORMANCE_TEST1} "
100101sed -i ' s=v1.0/=v1.2/=g' " ${CONFORMANCE_TEST2} "
101102popd
103+ coverage report
104+ coverage xml
102105
103106cp " ${CONFORMANCE_TEST1} " " ${CONFORMANCE_TEST1% " .yaml" } .cwltest.yaml"
104107CONFORMANCE_TEST1=" ${CONFORMANCE_TEST1% " .yaml" } .cwltest.yaml"
@@ -114,7 +117,7 @@ if [[ -n "${EXCLUDE}" ]] ; then
114117 EXCLUDE_COMMAND=" --cwl-exclude=${EXCLUDE} "
115118fi
116119
117- pushd $( dirname " ${CONFORMANCE_TEST1} " )
120+ pushd " $( dirname " ${CONFORMANCE_TEST1} " ) "
118121set +e
119122python3 -m pytest " ${CONFORMANCE_TEST1} " -n auto -rs --junit-xml=" ${SCRIPT_DIRECTORY} " /cwltool_v1.0_to_v1.1_" ${CONTAINER} " .xml -o junit_suite_name=cwltool_$( echo " ${CWLTOOL_OPTIONS} " | tr " [:blank:]-" _) ${EXCLUDE_COMMAND} ; RETURN_CODE1=$?
120123
Original file line number Diff line number Diff line change 1+ """Default entry point for the cwl-upgrader module."""
2+
3+ import sys
4+
5+ from . import main
6+
7+ sys .exit (main .main ())
You can’t perform that action at this time.
0 commit comments