Skip to content

Commit a23803c

Browse files
committed
Added coverage and codecov integration
1 parent 845b242 commit a23803c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/test.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ jobs:
3333
run: |
3434
black --check $(git ls-files '*.py')
3535
flake8 $(git ls-files '*.py')
36-
- name: Run tests
36+
- name: Run tests with coverage
3737
run: |
38-
python -m unittest test.py
38+
coverage run -m unittest test.py
39+
- name: Upload coverage to Codecov
40+
uses: codecov/codecov-action@v4.0.1
41+
with:
42+
token: ${{ secrets.CODECOV_TOKEN }}
43+
slug: ercanserteli/video-condenser

requirements-dev.txt

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ flake8==7.0.0
44
flake8-bugbear==24.2.6
55
flake8-pyproject==1.2.3
66
pre-commit==3.6.2
7+
coverage==7.4.3

0 commit comments

Comments
 (0)