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

Commit cdc5841

Browse files
author
Oliver Wieland (HC/XAG1)
committed
chore: Fix anybadge installation
1 parent 8fb4842 commit cdc5841

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/badge.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ jobs:
2121
- name: Setup dependencies
2222
run: |
2323
sudo apt-get update
24-
sudo apt-get install -y ninja-build libspdlog-dev gcc-11 g++-11 lcov python3-pip
24+
sudo apt-get install -y ninja-build libspdlog-dev gcc-11 g++-11 lcov python3-pip jq
2525
python3 -m pip install --user anybadge
26+
echo "$HOME/.local/bin" >> $GITHUB_PATH
2627
2728
- name: Set up CMake
2829
uses: jwlawson/actions-setup-cmake@v1.14
@@ -53,10 +54,8 @@ jobs:
5354
echo "CODE_COVERAGE=$PCT" >> $GITHUB_ENV
5455
5556
- name: Generate coverage badge
56-
env:
57-
PATH: ${{ env.HOME }}/.local/bin:${{ env.PATH }}
5857
run: |
59-
anybadge --value=${CODE_COVERAGE} --file=coverage.svg --label="coverage" --suffix="%" \
58+
python3 -m anybadge --value=${CODE_COVERAGE} --file=coverage.svg --label="coverage" --suffix="%" \
6059
0=red 50=orange 70=yellow 80=yellowgreen 90=green
6160
6261
- name: Upload coverage badge artifact

0 commit comments

Comments
 (0)