Skip to content

Commit

Permalink
Merge pull request #131 from Stoops-ML/codecov
Browse files Browse the repository at this point in the history
Update Codecov ghaction
  • Loading branch information
astrojuanlu authored Jun 24, 2024
2 parents 06abdce + 2ddc2af commit b03f228
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,22 @@ jobs:
name: codecov
runs-on: ubuntu-latest
steps:
- uses: codecov/codecov-action@v4.5.0
with:
fail_ci_if_error: true # optional (default = false)
token: ${{ secrets.CODECOV_TOKEN }} # required
verbose: true # optional (default = false)
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .[dev]
- name: Generate coverage report
run: python -m pytest --cov=./ --cov-report=xml:pytest_cov.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
directory: ./coverage/reports/
fail_ci_if_error: true
files: ./coverage.xml,./pytest_cov.xml,!./cache
flags: unittests
name: codecov-umbrella
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true

0 comments on commit b03f228

Please sign in to comment.