Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,16 @@ jobs:
verbose: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- name: Delete existing coverage report
run: rm coverage.json

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
file: fake-file.txt
flags: fake
plugins: noop
verbose: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2 changes: 2 additions & 0 deletions app/calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ def divide(x, y):
return 'Cannot divide by 0'
return x * 1.0 / y

def smiles(x, y):
return ':)'
4 changes: 4 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ cli:
plugins:
pycoverage:
report_type: "json"

codecov:
notify:
notify_error: true
1 change: 1 addition & 0 deletions fake-file.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
thisisnotacoveragereport
Loading