Skip to content

Commit 511207e

Browse files
committed
reactivated actions
1 parent 82f45ee commit 511207e

File tree

2 files changed

+42
-42
lines changed

2 files changed

+42
-42
lines changed

.github/actions/test/action.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -30,25 +30,25 @@ runs:
3030
cd build/tests
3131
sudo chmod a+x gmgpolar_tests
3232
./gmgpolar_tests --gtest_output="xml:testreport.xml"
33-
# - name: Compute code coverage
34-
# shell: bash
35-
# # compute code coverage
36-
# run: |
37-
# cd build
38-
# cmake --build . --target coverage/fast
39-
# - name: Upload test report
40-
# uses: actions/upload-artifact@v4
41-
# with:
42-
# name: test-report
43-
# path: build/tests/testreport.xml
44-
# if-no-files-found: error
45-
# retention-days: 3
46-
# - name: Upload coverage reports
47-
# uses: actions/upload-artifact@v4
48-
# with:
49-
# name: test-coverage-reports
50-
# path: |
51-
# build/coverage.info
52-
# build/coverage
53-
# if-no-files-found: error
54-
# retention-days: 1
33+
- name: Compute code coverage
34+
shell: bash
35+
# compute code coverage
36+
run: |
37+
cd build
38+
cmake --build . --target coverage/fast
39+
- name: Upload test report
40+
uses: actions/upload-artifact@v4
41+
with:
42+
name: test-report
43+
path: build/tests/testreport.xml
44+
if-no-files-found: error
45+
retention-days: 3
46+
- name: Upload coverage reports
47+
uses: actions/upload-artifact@v4
48+
with:
49+
name: test-coverage-reports
50+
path: |
51+
build/coverage.info
52+
build/coverage
53+
if-no-files-found: error
54+
retention-days: 1

.github/workflows/main.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,23 @@ jobs:
2626
with:
2727
build-artifact: build-cpp-linux-gmgpolar
2828

29-
# codecov:
30-
# if: github.event.pull_request.draft == false
31-
# needs: [run-unit-test]
32-
# runs-on: ubuntu-latest
33-
# steps:
34-
# - uses: actions/checkout@v4
35-
# - name: Install dependencies
36-
# run: |
37-
# sudo apt-get -qq update
38-
# sudo apt-get -qq -y install git curl
39-
# - name: Download cpp coverage report
40-
# uses: actions/download-artifact@v4
41-
# with:
42-
# name: test-coverage-reports
43-
# - name: Deploy to codecov.io
44-
# uses: codecov/codecov-action@v3
45-
# with:
46-
# token: ${{ secrets.CODECOV_TOKEN }}
47-
# files: ./coverage.info
48-
# verbose: true
29+
codecov:
30+
if: github.event.pull_request.draft == false
31+
needs: [run-unit-test]
32+
runs-on: ubuntu-latest
33+
steps:
34+
- uses: actions/checkout@v4
35+
- name: Install dependencies
36+
run: |
37+
sudo apt-get -qq update
38+
sudo apt-get -qq -y install git curl lcov
39+
- name: Download cpp coverage report
40+
uses: actions/download-artifact@v4
41+
with:
42+
name: test-coverage-reports
43+
- name: Deploy to codecov.io
44+
uses: codecov/codecov-action@v3
45+
with:
46+
token: ${{ secrets.CODECOV_TOKEN }}
47+
files: ./coverage.info
48+
verbose: true

0 commit comments

Comments
 (0)