Skip to content

Commit 360d4a8

Browse files
authored
[Test] Upload coverage data to codecov.io. (#694)
1 parent e988a50 commit 360d4a8

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,9 @@ jobs:
2929
run: |
3030
.github/bump_version ./ minor > atlassian/VERSION
3131
make docker-qa PYTHON_VERSION=${{matrix.python-version}}
32-
32+
- name: Creating coverage report
33+
if: ${{ ( matrix.python-version == '3.8' ) }}
34+
uses: codecov/codecov-action@v1
35+
with:
36+
files: ./coverage.xml
37+
fail_ci_if_error: true

requirements-dev.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ pytest-cov
55
flake8
66
black
77
tox
8+
coverage
9+
codecov

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ deps =
1212
coverage
1313
commands =
1414
coverage erase
15-
pytest -v --cov=atlassian --cov-branch
15+
pytest -v --cov=atlassian --cov-branch --cov-report=xml
1616
coverage html
1717
extras = kerberos
1818
parallel_show_output = true

0 commit comments

Comments
 (0)