Skip to content

Commit 06f7f5f

Browse files
authored
Merge pull request #1 from gripep/add-codecov
Add Codecov Integration
2 parents 8acc642 + ab6c276 commit 06f7f5f

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.github/workflows/build.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,8 @@ jobs:
2929
3030
- name: Run tox
3131
run: tox
32+
33+
- name: Upload coverage reports to Codecov
34+
uses: codecov/codecov-action@v4.0.1
35+
with:
36+
token: ${{ secrets.CODECOV_TOKEN }}

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ test: ## Run unittests with poetry
1919
poetry run pytest test_project
2020

2121
test/cov: ## Run code coverage tests coverage with poetry
22-
poetry run pytest test_project --cov=drf_simple_api_errors
22+
poetry run pytest test_project --cov=drf_simple_api_errors --cov-report xml:coverage.xml

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ deps =
1616
commands =
1717
make install
1818
make lint
19-
make test
19+
make test/cov

0 commit comments

Comments
 (0)