Skip to content

Commit 78a0487

Browse files
committed
add settings from codecov example
https://github.com/codecov/example-python
1 parent 909863a commit 78a0487

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

.coveragerc

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
branch = True
33
include = wagtail_wordpress_import/*
44
omit = */migrations/*,*/tests/*
5+
source=wagtail_wordpress_import
56

67
[report]
78
# Regexes for lines to exclude from consideration

.github/workflows/test.yml

+5
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ jobs:
3333
tox
3434
env:
3535
TOXENV: python${{ matrix.python }}-django${{ matrix.django }}-wagtail${{ matrix.wagtail }}-sqlite
36+
- name: "Upload coverage to Codecov"
37+
uses: codecov/codecov-action@v2
38+
with:
39+
fail_ci_if_error: true
40+
token: ${{ secrets.CODECOV_TOKEN }}
3641

3742
test-postgres:
3843
runs-on: ubuntu-latest

tox.ini

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ exclude = migrations,node_modules
1313
[testenv]
1414
install_command = pip install -e ".[testing]" -U {opts} {packages}
1515
commands = coverage run testmanage.py test --deprecation all
16+
passenv = CI TRAVIS TRAVIS_*
17+
deps = codecov
18+
commands = codecov
1619

1720
basepython =
1821
python3.8: python3.8
@@ -40,6 +43,7 @@ deps =
4043
setenv =
4144
postgres: DATABASE_URL={env:DATABASE_URL:postgres:///wagtail_wordpress_import}
4245

46+
4347
[testenv:flake8]
4448
basepython=python3.8
4549
deps=flake8>=2.2.0

0 commit comments

Comments
 (0)