Skip to content

Commit 3ca3098

Browse files
committed
chore: update coverage script
1 parent 722dfdd commit 3ca3098

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/pytest.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ jobs:
4444
run: pytest --cov=./ --cov-report=xml
4545
- name: Upload coverage
4646
uses: codecov/codecov-action@v3
47-
47+
with:
48+
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
4849
# - name: Lint with flake8
4950
# run: |
5051
# # stop the build if there are Python syntax errors or undefined names

scripts/coverage.sh

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/sh -e
2+
3+
export PREFIX=""
4+
if [ -d 'venv' ] ; then
5+
export PREFIX="venv/bin/"
6+
fi
7+
8+
set -x
9+
${PREFIX}coverage run -m pytest
10+
${PREFIX}coverage report --show-missing --skip-covered --fail-under=100

0 commit comments

Comments
 (0)