FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: create a fake path fixing example by thomasrockhu-codecov · Pull Request #351 · codecov/example-python · GitHub

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

Filter by extension

Filter by extension .py  (3) .xml  (1) .yml  (2) dotfile  (2) All 4 file types selected
Only manifest files
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
Binary file added .coverage
Binary file not shown.
23 changes: 4 additions & 19 deletions .github/workflows/ci.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,12 @@ jobs:
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload coverage to Codecov (arg token)
- name: Upload coverage to Codecov (fake Codecov out)
uses: codecov/codecov-action@main
with:
fail_ci_if_error: true
files: coverage-fake.xml
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
- name: Upload coverage to Codecov (env token)
uses: codecov/codecov-action@main
with:
fail_ci_if_error: true
verbose: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Upload coverage to Codecov (no token)
uses: codecov/codecov-action@main
with:
fail_ci_if_error: true
verbose: true
- name: Upload coverage to Codecov (oidc)
uses: codecov/codecov-action@main
with:
fail_ci_if_error: true
use_oidc: true
verbose: true
flags: fake-stuff
disable_search: true
Binary file added app/.coverage
Binary file not shown.
3 changes: 3 additions & 0 deletions codecov.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ cli:
plugins:
pycoverage:
report_type: "json"

fixes:
- "::app/"
63 changes: 63 additions & 0 deletions coverage-fake.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<?xml version="1.0" ?>
<coverage version="7.15.2" timestamp="1784835719032" lines-valid="35" lines-covered="34" line-rate="0.9714" branches-covered="0" branches-valid="0" branch-rate="0" complexity="0">
<!-- Generated by coverage.py: https://coverage.readthedocs.io/en/7.15.2 -->
<!-- Based on https://raw.githubusercontent.com/cobertura/web/master/htdocs/xml/coverage-04.dtd -->
<sources>
<source>/Users/thomashu/src/github/codecov/example-python</source>
</sources>
<packages>
<package line-rate="0.9714" branch-rate="0" complexity="0">
<classes>
<class name="__init__.py" filename="__init__.py" complexity="0" line-rate="1" branch-rate="0">
<methods/>
<lines/>
</class>
<class name="calculator.py" filename="calculator.py" complexity="0" line-rate="0.9091" branch-rate="0">
<methods/>
<lines>
<line number="1" hits="1"/>
<line number="3" hits="1"/>
<line number="4" hits="1"/>
<line number="6" hits="1"/>
<line number="7" hits="1"/>
<line number="9" hits="1"/>
<line number="10" hits="1"/>
<line number="12" hits="1"/>
<line number="13" hits="1"/>
<line number="14" hits="0"/>
<line number="15" hits="1"/>
</lines>
</class>
<class name="test_calculator.py" filename="test_calculator.py" complexity="0" line-rate="1" branch-rate="0">
<methods/>
<lines>
<line number="1" hits="1"/>
<line number="4" hits="1"/>
<line number="5" hits="1"/>
<line number="6" hits="1"/>
<line number="7" hits="1"/>
<line number="8" hits="1"/>
<line number="9" hits="1"/>
<line number="11" hits="1"/>
<line number="12" hits="1"/>
<line number="13" hits="1"/>
<line number="14" hits="1"/>
<line number="15" hits="1"/>
<line number="16" hits="1"/>
<line number="17" hits="1"/>
<line number="19" hits="1"/>
<line number="20" hits="1"/>
<line number="21" hits="1"/>
<line number="22" hits="1"/>
<line number="23" hits="1"/>
<line number="24" hits="1"/>
<line number="26" hits="1"/>
<line number="28" hits="1"/>
<line number="29" hits="1"/>
<line number="30" hits="1"/>
</lines>
</class>
</classes>
</package>
</packages>
</coverage>
Empty file added fake/__init__.py
Empty file.
Empty file added fake/calculator.py
Empty file.
Empty file.
Loading

Back | FazBrowse Home | New Git URL