Skip to content

Commit

Permalink
Merge pull request #535 from powerapi-ng/ci/always-upload-coverage
Browse files Browse the repository at this point in the history
ci(build): Always upload coverage reports to Codecov
  • Loading branch information
gfieni authored Feb 18, 2025
2 parents a4e2bdd + 8a27117 commit da2ba34
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ permissions:
contents: read

jobs:
build-and-test:
name: Build project and run tests
run-tests:
name: Run linters and unit tests
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -45,11 +45,9 @@ jobs:
uv run pytest --cov=powerapi --cov-report=term --cov-report=xml tests/unit
- name: Upload coverage reports to Codecov
if: ${{ matrix.python-version }} == "3.10"
uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # v5.3.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: coverage.xml

build-container-image:
name: Build container image
Expand Down

0 comments on commit da2ba34

Please sign in to comment.