Skip to content

Commit

Permalink
Fix workflow for master
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivie Franklova (CZ) authored and Olivie Franklova (CZ) committed May 2, 2024
1 parent 5ac2d97 commit 99a5b3a
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/py_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,26 +59,20 @@ jobs:
run: coverage report -m

- name: Create coverage file
if: github.event_name == 'pull_request'
run: coverage xml

- name: Get Cover
- if: github.event_name == 'pull_request'
if: github.event_name == 'pull_request'
uses: orgoro/[email protected]
with:
coverageFile: coverage.xml
token: ${{ secrets.GITHUB_TOKEN }}
thresholdAll: 0.7
thresholdNew: 0.9

# - name: Collect coverage
# uses: codecov/codecov-action@v3
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# fail_ci_if_error: true
# files: ./coverage.xml
# verbose: true

- uses: actions/upload-artifact@v4
if: github.event_name == 'pull_request'
with:
name: coverage
path: coverage.xml
Expand Down

0 comments on commit 99a5b3a

Please sign in to comment.