Skip to content

Commit 3a16e3f

Browse files
committed
add test to CI for coverage
1 parent 150cbd9 commit 3a16e3f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,9 @@ jobs:
341341
run: |
342342
just test ./tests/verify_environment.py
343343
just test-bash || exit 1
344+
sudo apt-get remove --purge -y powershell
345+
source .venv/bin/activate
346+
pytest --cov-append ./tests/shellcompletion/test_shell_resolution.py::test_get_win_shell_failure || exit 1
344347
345348
- name: Store coverage files
346349
uses: actions/upload-artifact@v4
@@ -666,9 +669,6 @@ jobs:
666669
run: |
667670
call .venv\Scripts\activate
668671
pytest --cov-append ./tests/shellcompletion/test_shell_resolution.py::test_get_win_shell_failure || exit 1
669-
Rename-Item -Path "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NewName "powershell_disabled.exe" -Force
670-
Rename-Item -Path "C:\Program Files\PowerShell\7\pwsh.exe" -NewName "pwsh_disabled.exe" -Force
671-
pytest --cov-append ./tests/shellcompletion/test_shell_resolution.py::test_get_win_shell_failure || exit 1
672672
shell: cmd
673673
- name: Store coverage files
674674
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)