Skip to content

Commit 9fd90de

Browse files
authored
Merge pull request #90 from browniebroke/codecov
Add code coverage reporting
2 parents c64e8ae + 681b13c commit 9fd90de

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

Diff for: .github/workflows/test.yml

+5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: CI
33
on:
44
pull_request:
55
push:
6+
branches:
7+
- main
68

79
jobs:
810
lint:
@@ -34,3 +36,6 @@ jobs:
3436
python-version: ${{ matrix.python-version }}
3537
- run: python -m pip install tox
3638
- run: tox -f py$(echo ${{ matrix.python-version }} | tr -d .)
39+
- uses: codecov/codecov-action@v4
40+
with:
41+
token: ${{ secrets.CODECOV_TOKEN }}

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ Desktop.ini
3434
# Coverage
3535
htmlcov/
3636
.coverage
37+
coverage.xml

Diff for: README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# DRF Excel: Django REST Framework Excel Spreadsheet (xlsx) Renderer
22

3+
[![codecov](https://codecov.io/gh/wharton/drf-excel/graph/badge.svg?token=EETTI9XRNO)](https://codecov.io/gh/wharton/drf-excel)
4+
35
`drf-excel` provides an Excel spreadsheet (xlsx) renderer for Django REST Framework. It uses OpenPyXL to create the spreadsheet and provide the file to the end user.
46

57
## Requirements

Diff for: pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ build-backend = "setuptools.build_meta"
5454
write_to = "drf_excel/_version.py"
5555

5656
[tool.pytest.ini_options]
57-
addopts = "--cov --cov-report=html --cov-report=term"
57+
addopts = "--cov --cov-report=xml --cov-report=term"
5858
python_files = "tests.py test_*.py"
5959
DJANGO_SETTINGS_MODULE = "tests.settings"
6060

0 commit comments

Comments
 (0)