Move the C coverage to the CodeCov GitHub Action
Same as Last PR. Now I expect the Lua coverage to work and the C coverage. I did it in 2 PRs to make sure the delta works. I also added a `-j8` in the example test step because it is I/O bound and it has enough ram. This should speed-up the CI (maybe?).
This commit is contained in:
parent
7034db3a44
commit
525db87185
|
@ -240,10 +240,6 @@ jobs:
|
||||||
if: matrix.coverage
|
if: matrix.coverage
|
||||||
run: sudo -H luarocks install cluacov
|
run: sudo -H luarocks install cluacov
|
||||||
|
|
||||||
- name: Install codecov.io uploader
|
|
||||||
if: matrix.coverage == 'codecov'
|
|
||||||
run: wget -O /tmp/codecov-bash https://codecov.io/bash
|
|
||||||
|
|
||||||
# Check out repository to ${{ github.workspace }}
|
# Check out repository to ${{ github.workspace }}
|
||||||
# Automatically picks the current branch/PR
|
# Automatically picks the current branch/PR
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -308,7 +304,7 @@ jobs:
|
||||||
run: cd "${{ github.workspace }}/build" && make check-unit
|
run: cd "${{ github.workspace }}/build" && make check-unit
|
||||||
|
|
||||||
- name: Run examples tests
|
- name: Run examples tests
|
||||||
run: cd "${{ github.workspace }}/build" && make check-examples
|
run: cd "${{ github.workspace }}/build" && make check-examples -j8
|
||||||
|
|
||||||
- name: Run requires tests
|
- name: Run requires tests
|
||||||
if: matrix.coverage
|
if: matrix.coverage
|
||||||
|
@ -330,7 +326,7 @@ jobs:
|
||||||
env:
|
env:
|
||||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
|
||||||
- name: Upload C code coverage report
|
- name: Generate C coverage report
|
||||||
if: matrix.coverage == 'codecov'
|
if: matrix.coverage == 'codecov'
|
||||||
run: |
|
run: |
|
||||||
# Report coverage for each .gcno file separately.
|
# Report coverage for each .gcno file separately.
|
||||||
|
@ -349,9 +345,13 @@ jobs:
|
||||||
# with Code Climate.
|
# with Code Climate.
|
||||||
find "gcov.$i" -maxdepth 1 -type f -name '#usr#*.gcov' -delete
|
find "gcov.$i" -maxdepth 1 -type f -name '#usr#*.gcov' -delete
|
||||||
done
|
done
|
||||||
|
- name: Upload C code coverage report
|
||||||
# Upload to Codecov.
|
if: matrix.coverage == 'codecov'
|
||||||
bash /tmp/codecov-bash -X gcov -X coveragepy -F gcov
|
uses: codecov/codecov-action@v3
|
||||||
|
with:
|
||||||
|
files: "${{ github.workspace }}/gcov"
|
||||||
|
env:
|
||||||
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
|
||||||
# `check-qa` is the only test that doesn't get a coverage report, so it has to run after all of that.
|
# `check-qa` is the only test that doesn't get a coverage report, so it has to run after all of that.
|
||||||
- name: Run qa tests
|
- name: Run qa tests
|
||||||
|
|
Loading…
Reference in New Issue