Skip to content

Commit 2bf6084

Browse files
author
Eugene Shershen
committed
add codecov
1 parent 61f67df commit 2bf6084

1 file changed

Lines changed: 18 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,26 @@ jobs:
5656
python -m pip install --upgrade pip wheel
5757
pip install -e ".[dev]"
5858
59-
- name: Run pytest
60-
run: python -m pytest tests/ -v
59+
- name: Produce coverage report
60+
if: matrix.build == 'linux_3.9'
61+
run: pytest --cov=psqlpy_sqlalchemy --cov-report=xml
6162

62-
- name: Run tests and collect coverage
63-
run: pytest --cov .
64-
65-
- name: Upload coverage reports to Codecov
66-
uses: codecov/codecov-action@v5
63+
- name: Upload coverage report
64+
if: matrix.build == 'linux_3.9'
65+
uses: codecov/codecov-action@v1
6766
with:
68-
token: ${{ secrets.CODECOV_TOKEN }}
67+
file: ./coverage.xml
68+
69+
# - name: Run pytest
70+
# run: python -m pytest tests/ -v
71+
#
72+
# - name: Run tests and collect coverage
73+
# run: pytest --cov .
74+
#
75+
# - name: Upload coverage reports to Codecov
76+
# uses: codecov/codecov-action@v5
77+
# with:
78+
# token: ${{ secrets.CODECOV_TOKEN }}
6979

7080
lint:
7181
name: lint

0 commit comments

Comments
 (0)