We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 722dfdd commit 3ca3098Copy full SHA for 3ca3098
.github/workflows/pytest.yml
@@ -44,7 +44,8 @@ jobs:
44
run: pytest --cov=./ --cov-report=xml
45
- name: Upload coverage
46
uses: codecov/codecov-action@v3
47
-
+ with:
48
+ token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
49
# - name: Lint with flake8
50
# run: |
51
# # stop the build if there are Python syntax errors or undefined names
scripts/coverage.sh
@@ -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