Skip to content

Commit

Permalink
try to upload coverage report from master
Browse files Browse the repository at this point in the history
  • Loading branch information
YigitElma committed Sep 4, 2024
1 parent 87d6c10 commit 886d3b8
Showing 1 changed file with 6 additions and 22 deletions.
28 changes: 6 additions & 22 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,29 +125,13 @@ jobs:
attempt_limit: 10
attempt_delay: 60000 # ms, 1 min

- name: Generate 100% Coverage Report
- name: Fetch coverage report from master
if: env.has_changes == 'false'
run: |
echo '<?xml version="1.0" ?>
<coverage line-rate="1" lines-covered="1" lines-valid="1" branches-covered="0" branches-valid="0" complexity="0" version="7.6.1">
<sources>
<source>/home/runner/work/DESC/DESC/desc</source>
</sources>
<packages>
<package name="." line-rate="1" branch-rate="1" complexity="0">
<classes>
<class name="__init__.py" filename="__init__.py" complexity="0" line-rate="1" branch-rate="0">
<methods/>
<lines>
<line number="3" hits="1"/>
</lines>
</class>
</classes>
</package>
</packages>
</coverage>' > cov.xml
- name: Upload 100% Coverage Report if skipped
git fetch origin master
git checkout origin/master -- coverage-reports/cov.xml
- name: Upload Coverage Report if Skipped
if: env.has_changes == 'false'
id: upload-coverage
uses: Wandalen/[email protected]
Expand All @@ -156,7 +140,7 @@ jobs:
with: |
token: ${{ secrets.CODECOV_TOKEN }}
name: codecov-umbrella
files: ./cov.xml
files: ./coverage-reports/cov.xml
fail_ci_if_error: true
verbose: true
attempt_limit: 10
Expand Down

0 comments on commit 886d3b8

Please sign in to comment.