Skip to content

Commit

Permalink
Merge pull request #90 from browniebroke/codecov
Browse files Browse the repository at this point in the history
Add code coverage reporting
  • Loading branch information
FlipperPA authored Oct 8, 2024
2 parents c64e8ae + 681b13c commit 9fd90de
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: CI
on:
pull_request:
push:
branches:
- main

jobs:
lint:
Expand Down Expand Up @@ -34,3 +36,6 @@ jobs:
python-version: ${{ matrix.python-version }}
- run: python -m pip install tox
- run: tox -f py$(echo ${{ matrix.python-version }} | tr -d .)
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ Desktop.ini
# Coverage
htmlcov/
.coverage
coverage.xml
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# DRF Excel: Django REST Framework Excel Spreadsheet (xlsx) Renderer

[![codecov](https://codecov.io/gh/wharton/drf-excel/graph/badge.svg?token=EETTI9XRNO)](https://codecov.io/gh/wharton/drf-excel)

`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.

## Requirements
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ build-backend = "setuptools.build_meta"
write_to = "drf_excel/_version.py"

[tool.pytest.ini_options]
addopts = "--cov --cov-report=html --cov-report=term"
addopts = "--cov --cov-report=xml --cov-report=term"
python_files = "tests.py test_*.py"
DJANGO_SETTINGS_MODULE = "tests.settings"

Expand Down

0 comments on commit 9fd90de

Please sign in to comment.