Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
KSkwarczynski authored Dec 2, 2024
1 parent 9cdb86e commit 296b036
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/CIValidations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ name: Validations CI
on:
pull_request:
branches: [ develop ]

push:
branches: [ feature_codecov ]

permissions:
contents: read
packages: write
Expand Down Expand Up @@ -145,20 +147,16 @@ jobs:
${{ matrix.test_9 }}
fi
- name: Install gcovr
- name: Install codecov
run: |
pip3 install gcovr
pip install codecov
- name: Generate Coverage Report
- name: Code Coverage
working-directory: /opt/MaCh3Validations/build
run: |
gcovr --json -o MaCh3_coverage.json -r .. -f "../CIValidations/*"
lcov --json -o coverage.json -r .. -f "../CIValidations/*"
lcov --html --html-details -o coverage.html -r .. -f "../CIValidations/*"
ls -l /opt/MaCh3Validations/build
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
verbose: true
files: /opt/MaCh3Validations/build/MaCh3_coverage.json
bash <(curl -s https://codecov.io/bash) -f coverage.json || echo "Codecov did not collect coverage reports"
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 296b036

Please sign in to comment.