Skip to content

Commit 4333a73

Browse files
CI bug fix.
The tests pass locally, but fail in GitHub Actions. Logs indicate a mismatch between the expected Python version and the one actually used. This commit attempts to correct that, and adds some logs for further debugging.
1 parent e217503 commit 4333a73

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/tests.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,16 @@ jobs:
4141
- name: Show environment
4242
run: conda run -n hotel_management conda list
4343

44+
- name: Debug coverage
45+
run: |
46+
conda run -n hotel_management which python
47+
conda run -n hotel_management which coverage
48+
conda run -n hotel_management coverage --version
49+
conda run -n hotel_management python -m coverage --version
50+
4451
- name: Run tests with coverage
45-
run: conda run -n hotel_management coverage run -m pytest -v --maxfail=1 --disable-warnings
52+
run: |
53+
conda run -n hotel_management python -m coverage run -m pytest -v --maxfail=1 --disable-warnings
4654
4755
- name: Show coverage summary and enforce minimum
4856
run: conda run -n hotel_management coverage report -m -i --fail-under=90

0 commit comments

Comments
 (0)