Skip to content
This repository was archived by the owner on Dec 14, 2025. It is now read-only.

Commit 6b5f45e

Browse files
committed
[TEST] Publish gcovr report on GitHub Pages
1 parent a10b586 commit 6b5f45e

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/pytest.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ jobs:
1111
runs-on: ubuntu-latest
1212
container:
1313
image: ghcr.io/darthcloud/idf-blueretro:v5.5.0_2024-12-02_gcovr
14+
permissions:
15+
contents: write
16+
pages: write
1417

1518
steps:
1619
- name: Checkout repo
@@ -49,3 +52,22 @@ jobs:
4952
serial_log.txt
5053
coverage*
5154
if-no-files-found: error
55+
- name: Checkout gcov pages
56+
uses: actions/checkout@v4
57+
with:
58+
repository: darthcloud/BlueRetroCoverage
59+
path: ./brcov
60+
token: ${{ secrets.GCOV_PAGES_PAT }}
61+
- name: Upload report to GitHub Pages
62+
if: ${{ (github.repository == 'darthcloud/BlueRetro') }}
63+
shell: bash
64+
run : |
65+
git config --global user.name "GitHubAction"
66+
git config --global user.email "octocat@github.com"
67+
cd brcov
68+
git rm coverage*
69+
cp ../coverage* ./
70+
cp coverage.html index.html
71+
git add -A
72+
git commit -m "Update coverage report"
73+
git push

0 commit comments

Comments
 (0)