Skip to content

Commit

Permalink
try codecov action
Browse files Browse the repository at this point in the history
  • Loading branch information
non-det-alle committed Oct 9, 2024
1 parent 1ae04da commit 8f5242e
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,14 @@ jobs:
store-artifacts: "false"
- name: "Extract ccache statistics"
run: echo "CACHE_MISSES=`./utils/ccache-miss-rate.py`" >> $GITHUB_ENV
- name: "Generate coverage data and submit to codecov.io"
- name: "Generate coverage data"
# if: env.CACHE_MISSES != '0'
run: |
./ns3 build coverage_gcc
bash <(curl -s https://codecov.io/bash) -f build/coverage/ns3.info -R $GITHUB_WORKSPACE/src/lorawan || echo "Codecov did not collect coverage reports"
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: ./ns3 build coverage_gcc
- name: "Submit to codecov.io"
# if: env.CACHE_MISSES != '0'
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./build/coverage/ns3.info
disable_search: true
root_dir: format('{0}/src/lorawan', env.GITHUB_WORKSPACE)

0 comments on commit 8f5242e

Please sign in to comment.