Skip to content

Commit d9cd0d3

Browse files
committed
Add codecov support
1 parent 5019b72 commit d9cd0d3

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/tests.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ jobs:
1212
python-version: ["3.6", "3.7", "3.8", "3.9"]
1313
django: ["2.2", "3.0", "3.1"]
1414
django-rest-framework: ["3.12", "master"]
15+
env:
16+
PYTHON: ${{ matrix.python-version }}
17+
DJANGO: ${{ matrix.django }}
18+
DJANGO_REST_FRAMEWORK: ${{ matrix.django-rest-framework }}
1519
steps:
1620
- uses: actions/checkout@v2
1721
- name: Set up Python ${{ matrix.python-version }}
@@ -24,9 +28,10 @@ jobs:
2428
pip install tox tox-gh-actions
2529
- name: Test with tox
2630
run: tox
27-
env:
28-
DJANGO: ${{ matrix.django }}
29-
DJANGO_REST_FRAMEWORK: ${{ matrix.django-rest-framework }}
31+
- name: Upload coverage report
32+
uses: codecov/codecov-action@v1
33+
with:
34+
env_vars: PYTHON,DJANGO,DJANGO_REST_FRAMEWORK
3035
check:
3136
name: Run check
3237
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)