Skip to content

Commit 585fbca

Browse files
committed
Fix github workflow for combining coverage data from multiple test runs
1 parent d86452b commit 585fbca

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

.github/workflows/cicd.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,23 +49,18 @@ jobs:
4949
python -m pip install -U .
5050
- name: Run tests against 'pydantic@latest'
5151
run: |
52-
python -m pytest --cov=pydantic2ts --cov-append
53-
- name: Run tests against 'pydantic==1.8.2'
52+
pytest --cov=pydantic2ts
53+
- name: (3.9 ubuntu) Run tests against 'pydantic==1.8.2'
5454
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9' }}
5555
run: |
5656
python -m pip install 'pydantic==1.8.2'
5757
python -m pip install -U .
58-
python -m pytest --cov=pydantic2ts --cov-append
59-
- name: Combine coverage data
58+
pytest --cov=pydantic2ts --cov-append
59+
- name: (3.9 ubuntu) Generate LCOV File
6060
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9' }}
6161
run: |
62-
coverage combine
63-
coverage report
64-
- name: Generate LCOV File
65-
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9' }}
66-
run: |
67-
coverage lcov -o coverage.lcov
68-
- name: Coveralls
62+
coverage lcov
63+
- name: (3.9 ubuntu) Upload to Coveralls
6964
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9' }}
7065
uses: coverallsapp/github-action@master
7166
with:

0 commit comments

Comments
 (0)