Skip to content

Commit cceb6d9

Browse files
committed
fix/tests
1 parent 81d37a6 commit cceb6d9

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

.github/workflows/pytest.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,24 @@ jobs:
3434
run: |
3535
set -eux
3636
python -m pip install -U pip
37-
pip install -r service/requirements.txt
38-
pip install -r service/requirements.test.txt
37+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
38+
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
39+
pip install pytest coverage nbformat nbclient
40+
if [ -f service/pyproject.toml ] || [ -f service/setup.cfg ] || [ -f service/setup.py ]; then
41+
pip install -e service
42+
fi
3943
- name: Install deps (Windows)
4044
if: matrix.os == 'windows-latest'
4145
shell: pwsh
4246
run: |
4347
$ErrorActionPreference = "Stop"
4448
python -m pip install -U pip
45-
pip install -r service/requirements.txt
46-
pip install -r service/requirements.test.txt
49+
if (Test-Path requirements.txt) { pip install -r requirements.txt }
50+
if (Test-Path requirements-dev.txt) { pip install -r requirements-dev.txt }
4751
pip install pytest coverage nbformat nbclient
52+
if (Test-Path service/pyproject.toml -or Test-Path service/setup.cfg -or Test-Path service/setup.py) {
53+
pip install -e service
54+
}
4855
- name: Show versions
4956
shell: bash
5057
run: |

0 commit comments

Comments
 (0)