Skip to content

Commit

Permalink
Codecov CI action in place of deprecated script
Browse files Browse the repository at this point in the history
  • Loading branch information
non-det-alle committed Oct 12, 2024
1 parent 2f87d38 commit 3ee4dc7
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,13 @@ jobs:
- name: "Extract ccache statistics"
run: echo "CACHE_MISSES=`./utils/ccache-miss-rate.py`" >> $GITHUB_ENV
- if: env.CACHE_MISSES != '0'
name: "Generate coverage data and submit to codecov.io"
run: |
./ns3 build coverage_gcc
cd ./build/coverage
bash <(curl -s https://codecov.io/bash) -f ns3.info -R $GITHUB_WORKSPACE/src/lorawan || echo "Codecov did not collect coverage reports"
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
name: "Generate coverage data"
run: ./ns3 build coverage_gcc
- if: env.CACHE_MISSES != '0'
name: "Submit coverage data to codecov.io"
uses: codecov/codecov-action@v4
with:
working-directory: ./src/lorawan
file: ./build/coverage/ns3.info
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true

0 comments on commit 3ee4dc7

Please sign in to comment.