File tree Expand file tree Collapse file tree 3 files changed +19
-5
lines changed Expand file tree Collapse file tree 3 files changed +19
-5
lines changed 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 -m cwlupgrader --rcfile=${SCRIPT_DIRECTORY} /.coveragerc
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
98+ coverage xml
9799cp conformance_test_v1.0.yaml " ${CONFORMANCE_TEST1} "
98100cp conformance_test_v1.0.yaml " ${CONFORMANCE_TEST2} "
99101sed -i ' s=v1.0/=v1.1/=g' " ${CONFORMANCE_TEST1} "
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