Skip to content

Commit 18f91dd

Browse files
committed
fix/update/cicd
1 parent 973e303 commit 18f91dd

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/pytest.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,23 @@ jobs:
3232
python-version: ${{ matrix.python-version }}
3333
cache: "pip"
3434

35-
- name: Install deps (Ubuntu)
36-
if: matrix.os == 'ubuntu-latest'
35+
- name: Install deps (Unix)
36+
if: matrix.os != 'windows-latest'
3737
shell: bash
3838
run: |
3939
set -eux
4040
python -m pip install -U pip
41-
pip install -r service/requirements.test.txt
41+
python -m pip install -r service/requirements.test.txt
4242
if [ -f service/pyproject.toml ] || [ -f service/setup.cfg ] || [ -f service/setup.py ]; then
43-
pip install -e service
43+
python -m pip install -e service
4444
fi
4545
- name: Install deps (Windows)
4646
if: matrix.os == 'windows-latest'
4747
shell: pwsh
4848
run: |
4949
$ErrorActionPreference = "Stop"
5050
python -m pip install -U pip
51-
pip install -r service/requirements.test.txt
51+
python -m pip install -r service/requirements.test.txt
5252
$hasPythonProject = (Test-Path -Path 'service/pyproject.toml') -or
5353
(Test-Path -Path 'service/setup.cfg') -or
5454
(Test-Path -Path 'service/setup.py')
@@ -62,7 +62,7 @@ jobs:
6262
run: |
6363
python --version
6464
pip --version
65-
pytest --version
65+
python -m pytest --version
6666
python -c "import sys,platform,os;print(platform.platform());print(sys.version);print('PYTHONPATH=',os.environ.get('PYTHONPATH'))"
6767
- name: Run tests with coverage
6868
shell: bash

0 commit comments

Comments
 (0)