Skip to content

Commit e35b7ba

Browse files
committed
record coverage while running the conformance tests
1 parent 4eb55ef commit e35b7ba

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.github/workflows/ci-tests.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff 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

conformance-test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ cp -r v1.0 v1.2
9191
rm v1.1/*.cwl
9292
rm v1.2/*.cwl
9393
set +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
94+
pushd v1.0 ; coverage run --append -m cwl-upgrader --v1.1-only --dir ../v1.1 --always-write ./*.cwl; popd
95+
pushd v1.0 ; coverage run --append -m cwl-upgrader --dir ../v1.2 --always-write ./*.cwl; popd
9696
set -x
9797
cp conformance_test_v1.0.yaml "${CONFORMANCE_TEST1}"
9898
cp conformance_test_v1.0.yaml "${CONFORMANCE_TEST2}"

0 commit comments

Comments
 (0)