Skip to content

Commit

Permalink
Move coverage tools installation
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephane Gouache committed Jul 9, 2024
1 parent eae1808 commit aeb0932
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/hosted-ninja-vcpkg_submod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ jobs:
service_account: 'khiops-gcs-driver-test-sa@ino-olr-dak-ideal-sbx.iam.gserviceaccount.com'
workload_identity_provider: 'projects/322269704080/locations/global/workloadIdentityPools/github/providers/my-repo'

- name: Install coverage tols
if: matrix.os == 'ubuntu-latest'
run: |
apt-get install lcov gcovr
# Note: if the preset misses the "configuration", it is possible to explicitly select the
# configuration with the additional `--config` flag, e.g.:
# buildPreset: 'ninja-vcpkg'
Expand All @@ -88,7 +93,6 @@ jobs:
- name: Generate coverage report
if: matrix.os == 'ubuntu-latest'
run: |
apt-get install lcov gcovr
cmake --build --preset ninja-vcpkg-debug --target khiops-gcs_coverage --target khiops-gcs_cobertura
- name: Upload coverage results
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/hosted-pure-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ jobs:
- name: Build debug version and run sanitizer checks
if: matrix.os == 'ubuntu-latest'
run: |
apt-get install lcov gcovr
cmake --preset ninja-multi-vcpkg -DCMAKE_BUILD_TYPE=Debug
cmake --build --preset ninja-vcpkg-debug
ctest --preset test-debug --output-on-failure
apt-get install lcov gcovr
cmake --build --preset ninja-vcpkg-debug --target khiops-gcs_coverage --target khiops-gcs_cobertura
- name: Upload coverage results
Expand Down

0 comments on commit aeb0932

Please sign in to comment.