mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-16 07:47:22 +01:00
Merge pull request #3947 from awesomeWM/fix-coverage2
Move the C coverage to the CodeCov GitHub Action
This commit is contained in:
commit
2b7006fb45
1 changed files with 18 additions and 17 deletions
35
.github/workflows/main.yml
vendored
35
.github/workflows/main.yml
vendored
|
@ -240,10 +240,6 @@ jobs:
|
|||
if: matrix.coverage
|
||||
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 }}
|
||||
# Automatically picks the current branch/PR
|
||||
- uses: actions/checkout@v2
|
||||
|
@ -308,7 +304,7 @@ jobs:
|
|||
run: cd "${{ github.workspace }}/build" && make check-unit
|
||||
|
||||
- name: Run examples tests
|
||||
run: cd "${{ github.workspace }}/build" && make check-examples
|
||||
run: cd "${{ github.workspace }}/build" && make check-examples -j24
|
||||
|
||||
- name: Run requires tests
|
||||
if: matrix.coverage
|
||||
|
@ -322,15 +318,7 @@ jobs:
|
|||
run: |
|
||||
luacov
|
||||
|
||||
- name: Upload Lua code coverage report
|
||||
if: matrix.coverage == 'codecov'
|
||||
uses: codecov/codecov-action@v3
|
||||
with:
|
||||
files: "${{ github.workspace }}/build/luacov.report.out"
|
||||
env:
|
||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||
|
||||
- name: Upload C code coverage report
|
||||
- name: Generate C coverage report
|
||||
if: matrix.coverage == 'codecov'
|
||||
run: |
|
||||
# Report coverage for each .gcno file separately.
|
||||
|
@ -349,9 +337,22 @@ jobs:
|
|||
# with Code Climate.
|
||||
find "gcov.$i" -maxdepth 1 -type f -name '#usr#*.gcov' -delete
|
||||
done
|
||||
|
||||
# Upload to Codecov.
|
||||
bash /tmp/codecov-bash -X gcov -X coveragepy -F gcov
|
||||
|
||||
- name: Upload Lua code coverage report
|
||||
if: matrix.coverage == 'codecov'
|
||||
uses: codecov/codecov-action@v3
|
||||
with:
|
||||
files: "${{ github.workspace }}/build/luacov.report.out"
|
||||
env:
|
||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||
|
||||
- name: Upload C code coverage report
|
||||
if: matrix.coverage == 'codecov'
|
||||
uses: codecov/codecov-action@v3
|
||||
with:
|
||||
files: "${{ github.workspace }}/build/*/*.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.
|
||||
- name: Run qa tests
|
||||
|
|
Loading…
Reference in a new issue