Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add coverage data to testspace #1088

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/buildmgr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -458,9 +458,9 @@ jobs:

coverage:
if: |
((github.event_name == 'pull_request') ||
(github.event_name == 'pull_request') ||
(github.event_name == 'push') ||
(github.event_name == 'release' && startsWith(github.ref, 'refs/tags/tools/buildmgr/'))) &&
(github.event_name == 'release' && startsWith(github.ref, 'refs/tags/tools/buildmgr/')) ||
((github.event.schedule != '') && (!github.event.repository.private))
env:
installer_name: "gcc-arm-11.2-2022.02-x86_64-arm-none-eabi.tar.xz"
Expand Down Expand Up @@ -489,6 +489,7 @@ jobs:
submodules: recursive

- name: Testspace client install & config
if: ${{ !github.event.repository.private }}
uses: testspace-com/setup-testspace@v1
with:
domain: ${{github.repository_owner}}
Expand Down Expand Up @@ -565,21 +566,26 @@ jobs:

# testspace changes start
- name: Set up Python
if: ${{ !github.event.repository.private }}
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
if: ${{ !github.event.repository.private }}
run: |
python -m pip install --upgrade pip
pip install lcov_cobertura
- name: Convert to xml
if: ${{ !github.event.repository.private }}
run: |
lcov_cobertura ./build/tools/buildmgr/coverage_buildmgr.info
- name: Testspace push coverage
if: ${{ !github.event.repository.private }}
run: testspace "[${{ github.workflow }} / Code Coverage]./coverage.xml"
# testspace changes end

- name: Upload Report to Codecov
if: ${{ !github.event.repository.private }}
uses: Wandalen/wretry.action@v1.0.41
with:
action: codecov/codecov-action@v3
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/packchk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ jobs:

coverage:
if: |
((github.event_name == 'pull_request') ||
(github.event_name == 'pull_request') ||
(github.event_name == 'push') ||
(github.event_name == 'release' && startsWith(github.ref, 'refs/tags/tools/packchk/'))) &&
(github.event_name == 'release' && startsWith(github.ref, 'refs/tags/tools/packchk/')) ||
((github.event.schedule != '') && (!github.event.repository.private))
env:
lcov_base: https://github.com/linux-test-project/lcov/releases/download/v1.15/
Expand All @@ -186,6 +186,7 @@ jobs:
submodules: recursive

- name: Testspace client install & config
if: ${{ !github.event.repository.private }}
uses: testspace-com/setup-testspace@v1
with:
domain: ${{github.repository_owner}}
Expand Down Expand Up @@ -255,22 +256,27 @@ jobs:

# testspace changes start
- name: Set up Python
if: ${{ !github.event.repository.private }}
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
if: ${{ !github.event.repository.private }}
run: |
python -m pip install --upgrade pip
pip install lcov_cobertura
- name: Convert to xml
if: ${{ !github.event.repository.private }}
run: |
lcov_cobertura ./build/tools/packchk/coverage_packchk.info
- name: Testspace push coverage
if: ${{ !github.event.repository.private }}
run: |
testspace "[${{ github.workflow }} / Code Coverage]./coverage.xml"
# testspace changes start

- name: Upload Report to Codecov
if: ${{ !github.event.repository.private }}
uses: Wandalen/wretry.action@v1.0.41
with:
action: codecov/codecov-action@v3
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/packgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,9 @@ jobs:

coverage:
if: |
((github.event_name == 'pull_request') ||
(github.event_name == 'pull_request') ||
(github.event_name == 'push') ||
(github.event_name == 'release' && startsWith(github.ref, 'refs/tags/tools/packgen/'))) &&
(github.event_name == 'release' && startsWith(github.ref, 'refs/tags/tools/packgen/')) ||
((github.event.schedule != '') && (!github.event.repository.private))
env:
lcov_base: https://github.com/linux-test-project/lcov/releases/download/v1.15/
Expand All @@ -216,6 +216,7 @@ jobs:
submodules: true

- name: Testspace client install & config
if: ${{ !github.event.repository.private }}
uses: testspace-com/setup-testspace@v1
with:
domain: ${{github.repository_owner}}
Expand Down Expand Up @@ -266,22 +267,27 @@ jobs:

# testspace changes start
- name: Set up Python
if: ${{ !github.event.repository.private }}
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
if: ${{ !github.event.repository.private }}
run: |
python -m pip install --upgrade pip
pip install lcov_cobertura
- name: Convert to xml
if: ${{ !github.event.repository.private }}
run: |
lcov_cobertura ./build/tools/packgen/coverage_packgen.info
- name: Testspace push coverage
if: ${{ !github.event.repository.private }}
run: |
testspace "[${{ github.workflow }} / Code Coverage]./coverage.xml"
# testspace changes start

- name: Upload Report to Codecov
if: ${{ !github.event.repository.private }}
uses: Wandalen/wretry.action@v1.0.41
with:
action: codecov/codecov-action@v3
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/projmgr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,9 @@ jobs:

coverage:
if: |
((github.event_name == 'pull_request') ||
(github.event_name == 'pull_request') ||
(github.event_name == 'push') ||
(github.event_name == 'release' && startsWith(github.ref, 'refs/tags/tools/projmgr/'))) &&
(github.event_name == 'release' && startsWith(github.ref, 'refs/tags/tools/projmgr/')) ||
((github.event.schedule != '') && (!github.event.repository.private))
env:
lcov_base: https://github.com/linux-test-project/lcov/releases/download/v1.15/
Expand All @@ -365,6 +365,7 @@ jobs:
submodules: true

- name: Testspace client install & config
if: ${{ !github.event.repository.private }}
uses: testspace-com/setup-testspace@v1
with:
domain: ${{github.repository_owner}}
Expand Down Expand Up @@ -415,22 +416,27 @@ jobs:

# testspace changes start
- name: Set up Python
if: ${{ !github.event.repository.private }}
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
if: ${{ !github.event.repository.private }}
run: |
python -m pip install --upgrade pip
pip install lcov_cobertura
- name: Convert to xml
if: ${{ !github.event.repository.private }}
run: |
lcov_cobertura ./build/tools/projmgr/coverage_projmgr.info
- name: Testspace push coverage
if: ${{ !github.event.repository.private }}
run: |
testspace "[${{ github.workflow }} / Code Coverage]./coverage.xml"
# testspace changes start

- name: Upload Report to Codecov
if: ${{ !github.event.repository.private }}
uses: Wandalen/wretry.action@v1.0.41
with:
action: codecov/codecov-action@v3
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/svdconv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ jobs:

coverage:
if: |
((github.event_name == 'pull_request') ||
(github.event_name == 'pull_request') ||
(github.event_name == 'push') ||
(github.event_name == 'release' && startsWith(github.ref, 'refs/tags/tools/svdconv/'))) &&
(github.event_name == 'release' && startsWith(github.ref, 'refs/tags/tools/svdconv/')) ||
((github.event.schedule != '') && (!github.event.repository.private))
env:
lcov_base: https://github.com/linux-test-project/lcov/releases/download/v1.15/
Expand All @@ -175,6 +175,7 @@ jobs:
submodules: recursive

- name: Testspace client install & config
if: ${{ !github.event.repository.private }}
uses: testspace-com/setup-testspace@v1
with:
domain: ${{github.repository_owner}}
Expand Down Expand Up @@ -251,22 +252,27 @@ jobs:

# testspace changes start
- name: Set up Python
if: ${{ !github.event.repository.private }}
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
if: ${{ !github.event.repository.private }}
run: |
python -m pip install --upgrade pip
pip install lcov_cobertura
- name: Convert to xml
if: ${{ !github.event.repository.private }}
run: |
lcov_cobertura ./build/tools/svdconv/coverage_svdconv.info
- name: Testspace push coverage
if: ${{ !github.event.repository.private }}
run: |
testspace "[${{ github.workflow }} / Code Coverage]./coverage.xml"
# testspace changes start

- name: Upload Report to Codecov
if: ${{ !github.event.repository.private }}
uses: Wandalen/wretry.action@v1.0.41
with:
action: codecov/codecov-action@v3
Expand Down
Loading