Skip to content

Commit ced1080

Browse files
authored
debt: Add sticky comments for coverage status on Linux and Windows (#320)
1 parent c527cb9 commit ced1080

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

.github/workflows/coverage.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,30 @@ jobs:
2929
- name: Checkout
3030
uses: actions/checkout@v4
3131

32+
- name: Post Coverage Started Comment (Linux)
33+
if: startsWith(matrix.os, 'ubuntu')
34+
uses: marocchino/sticky-pull-request-comment@v2
35+
with:
36+
header: coverage-linux
37+
message: |
38+
## Test Coverage Report (Linux)
39+
40+
:hourglass_flowing_sand: **Coverage analysis in progress...**
41+
42+
This comment will be updated with results when the analysis completes.
43+
44+
- name: Post Coverage Started Comment (Windows)
45+
if: startsWith(matrix.os, 'windows')
46+
uses: marocchino/sticky-pull-request-comment@v2
47+
with:
48+
header: coverage-windows
49+
message: |
50+
## Test Coverage Report (Windows)
51+
52+
:hourglass_flowing_sand: **Coverage analysis in progress...**
53+
54+
This comment will be updated with results when the analysis completes.
55+
3256
- name: Set Python to PATH
3357
uses: actions/setup-python@v5
3458
with:

crates/pet-pyenv/tests/pyenv_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ fn gets_pyenv_manager_version_without_env_vars() {
5151
".pyenv",
5252
"pyenv-win",
5353
"bin",
54-
"pyenv.exe",
54+
"pyenv.bat",
5555
]),
5656
version: Some("3.5.0".to_string()),
5757
tool: EnvManagerType::Pyenv,

crates/pet-pyenv/tests/windows/pyenv_no_env_vars/user_home/.pyenv/pyenv-win/bin/pyenv.exe renamed to crates/pet-pyenv/tests/windows/pyenv_no_env_vars/user_home/.pyenv/pyenv-win/bin/pyenv.bat

File renamed without changes.

0 commit comments

Comments
 (0)