Skip to content

Commit

Permalink
ci: Update GitHub Actions workflow
Browse files Browse the repository at this point in the history
- Added explicit codecov token usage
- Improved error handling
- Added verbose output for better debugging
  • Loading branch information
Hassan Shabbir Ahmed committed Nov 30, 2024
1 parent c2adbde commit 6212104
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install codecov
pip install codecov pytest-cov
- name: Install system dependencies
run: |
Expand All @@ -31,13 +31,13 @@ jobs:
- name: Run tests with coverage
run: |
python -m pytest --cov=src/ --cov-report=xml
python -m pytest --cov=src/ --cov-report=xml --cov-report=term
- name: Upload coverage to Codecov
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: true
fail_ci_if_error: false # Don't fail if upload fails
verbose: true

0 comments on commit 6212104

Please sign in to comment.