Skip to content

Commit a3e851d

Browse files
CI bug fix.
This commit attempts to fix a CI issue with GitHub Actions.
1 parent 4333a73 commit a3e851d

1 file changed

Lines changed: 10 additions & 11 deletions

File tree

.github/workflows/tests.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,25 +32,24 @@ jobs:
3232

3333
- name: Install additional pip dependencies (CPU-safe version of torch)
3434
run: |
35-
conda run -n hotel_management pip install torch==2.10.0
36-
conda run -n hotel_management pip install -r requirements.txt
37-
conda run -n hotel_management pip install pytest
38-
conda run -n hotel_management pip install coverage
39-
conda run -n hotel_management pip install httpx
35+
conda run -n hotel_management python -m pip install torch==2.10.0
36+
conda run -n hotel_management python -m pip install -r requirements.txt
37+
conda run -n hotel_management python -m pip install pytest
38+
conda run -n hotel_management python -m pip install coverage
39+
conda run -n hotel_management python -m pip install httpx
4040
4141
- name: Show environment
4242
run: conda run -n hotel_management conda list
4343

44-
- name: Debug coverage
44+
- name: Debug environment
4545
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
46+
conda run -n hotel_management python -c "import sys; print(sys.executable)"
47+
conda run -n hotel_management python -c "import coverage; print(coverage.__version__)"
5048
5149
- name: Run tests with coverage
5250
run: |
5351
conda run -n hotel_management python -m coverage run -m pytest -v --maxfail=1 --disable-warnings
5452
5553
- name: Show coverage summary and enforce minimum
56-
run: conda run -n hotel_management coverage report -m -i --fail-under=90
54+
run: |
55+
conda run -n hotel_management python -m coverage report -m -i --fail-under=90

0 commit comments

Comments
 (0)