Skip to content

Commit

Permalink
[ci] add kcov tool for linux package integration tests coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
  • Loading branch information
AenBleidd committed Aug 31, 2024
1 parent 8ae0805 commit dbf3a1a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
codecov:
require_ci_to_pass: true
notify:
after_n_builds: 3
after_n_builds: 4
wait_for_ci: true

coverage:
Expand All @@ -19,7 +19,7 @@ comment:
require_head: true # [true :: must have a head report to post]
branches:
- master
after_n_builds: 3
after_n_builds: 4

github_checks:
annotations: false
Expand Down
23 changes: 22 additions & 1 deletion .github/workflows/linux-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -750,10 +750,31 @@ jobs:
apt install -y $(find ./ -type f -name "boinc-manager*.deb" -printf "%p\n")
- name: Run integration tests
if: success()
if: success() && !(matrix.os == 'focal' && matrix.type == 'install')
run: |
python3 ./tests/linux_package_tests/integration_tests.py
- name: Install kcov
if: success() && matrix.os == 'focal' && matrix.type == 'install'
run: |
apt install -y software-properties-common
add-apt-repository "deb http://archive.ubuntu.com/ubuntu focal universe"
apt update -qq
apt install -y kcov
- name: Run integration tests with kcov
if: success() && matrix.os == 'focal' && matrix.type == 'install'
run: |
kcov ./coverage python3 ./tests/linux_package_tests/integration_tests.py
- name: Upload coverage report
if: success() && matrix.os == 'focal' && matrix.type == 'install'
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673
with:
directory: ./coverage/
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

test-fedora-rpm-package:
name: Test Fedora RPM Package
runs-on: ubuntu-latest
Expand Down

0 comments on commit dbf3a1a

Please sign in to comment.