-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
01af295
commit 9018d7e
Showing
2 changed files
with
64 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,52 @@ | ||
name: Code Coverage | ||
|
||
on: | ||
push: | ||
branches: | ||
- "**" | ||
pull_request: | ||
branches: | ||
- "**" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
check-quality: | ||
runs-on: ubuntu-latest | ||
name: Code Coverage | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
ref: ${{ steps.extract_branch.outputs.branch }} | ||
|
||
- name: Install Requirements | ||
run: | | ||
sudo apt-get install libgomp1 | ||
- name: Compile LibRapid | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake .. -DLIBRAPID_BUILD_TESTS=on -DLIBRAPID_GET_BLAS=on -DLIBRAPID_USE_MULTIPREC=on -DCMAKE_CXX_FLAGS=--coverage -DCMAKE_C_FLAGS=--coverage -DCMAKE_BUILD_TYPE=Debug | ||
cmake --build . --parallel | ||
env: | ||
CC: gcc-9 | ||
CXX: g++-9 | ||
|
||
- name: Run Executable | ||
run: | | ||
cd build | ||
ctest -C Release --output-on-failure | ||
- name: Run Code Coverage | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
verbose: true | ||
|
||
- name: Upload Code Coverage Results | ||
run: | | ||
curl -Os https://uploader.codecov.io/latest/linux/codecov | ||
chmod +x codecov | ||
./codecov | ||
# name: Code Coverage | ||
# | ||
# on: | ||
# push: | ||
# branches: | ||
# - "**" | ||
# pull_request: | ||
# branches: | ||
# - "**" | ||
# workflow_dispatch: | ||
# | ||
# jobs: | ||
# check-quality: | ||
# runs-on: ubuntu-latest | ||
# name: Code Coverage | ||
# steps: | ||
# - name: Checkout Code | ||
# uses: actions/checkout@v3 | ||
# with: | ||
# submodules: recursive | ||
# ref: ${{ steps.extract_branch.outputs.branch }} | ||
# | ||
# - name: Install Requirements | ||
# run: | | ||
# sudo apt-get install libgomp1 | ||
# | ||
# - name: Compile LibRapid | ||
# run: | | ||
# mkdir build | ||
# cd build | ||
# cmake .. -DLIBRAPID_BUILD_TESTS=on -DLIBRAPID_GET_BLAS=on -DLIBRAPID_USE_MULTIPREC=on -DCMAKE_CXX_FLAGS=--coverage -DCMAKE_C_FLAGS=--coverage -DCMAKE_BUILD_TYPE=Debug | ||
# cmake --build . --parallel | ||
# env: | ||
# CC: gcc-9 | ||
# CXX: g++-9 | ||
# | ||
# - name: Run Executable | ||
# run: | | ||
# cd build | ||
# ctest -C Release --output-on-failure | ||
# | ||
# - name: Run Code Coverage | ||
# uses: codecov/codecov-action@v3 | ||
# with: | ||
# verbose: true | ||
# | ||
# - name: Upload Code Coverage Results | ||
# run: | | ||
# curl -Os https://uploader.codecov.io/latest/linux/codecov | ||
# chmod +x codecov | ||
# ./codecov | ||
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters