Skip to content

Commit b40233f

Browse files
Fix: Update CI workflow for proper package installation order
Co-Authored-By: [email protected] <[email protected]>
1 parent b0c7596 commit b40233f

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/python-ci.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ jobs:
3737
. .venv/bin/activate
3838
fi
3939
python -m pip install --upgrade pip
40-
uv pip install --system
4140
4241
- name: selfie-lib - install dependencies
4342
shell: bash
@@ -48,8 +47,8 @@ jobs:
4847
else
4948
. ../../.venv/bin/activate
5049
fi
51-
python -m pip install -e .
52-
python -m pip install -r requirements.txt -r dev-requirements.txt
50+
uv pip install -e .
51+
uv pip install -r requirements.txt -r dev-requirements.txt
5352
5453
- name: selfie-lib - pytest
5554
shell: bash
@@ -93,8 +92,20 @@ jobs:
9392
else
9493
. ../../.venv/bin/activate
9594
fi
95+
uv pip install .
9696
uv pip install -r requirements.txt -r dev-requirements.txt
9797
98+
- name: pytest-selfie - pytest
99+
shell: bash
100+
working-directory: python/pytest-selfie
101+
run: |
102+
if [ "${{ runner.os }}" = "Windows" ]; then
103+
. ../../.venv/Scripts/activate
104+
else
105+
. ../../.venv/bin/activate
106+
fi
107+
python -m pytest -vv
108+
98109
- name: pytest-selfie - pyright
99110
shell: bash
100111
working-directory: python/pytest-selfie

0 commit comments

Comments
 (0)