Skip to content

Commit b0c7596

Browse files
Fix: Update package references and CI workflow for proper dependency resolution
Co-Authored-By: [email protected] <[email protected]>
1 parent 44284d9 commit b0c7596

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

.github/workflows/python-ci.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ jobs:
2424
with:
2525
python-version: ${{ matrix.python-version }}
2626

27+
- name: Install uv
28+
uses: astral-sh/setup-uv@v4
29+
2730
- name: Set up Python environment
2831
shell: bash
2932
run: |
@@ -34,7 +37,7 @@ jobs:
3437
. .venv/bin/activate
3538
fi
3639
python -m pip install --upgrade pip
37-
pip install uv
40+
uv pip install --system
3841
3942
- name: selfie-lib - install dependencies
4043
shell: bash
@@ -90,8 +93,7 @@ jobs:
9093
else
9194
. ../../.venv/bin/activate
9295
fi
93-
python -m pip install -e . -e ../selfie-lib
94-
python -m pip install -r requirements.txt -r dev-requirements.txt
96+
uv pip install -r requirements.txt -r dev-requirements.txt
9597
9698
- name: pytest-selfie - pyright
9799
shell: bash
@@ -124,8 +126,7 @@ jobs:
124126
else
125127
. ../../.venv/bin/activate
126128
fi
127-
python -m pip install -e . -e ../selfie-lib -e ../pytest-selfie
128-
python -m pip install -r requirements.txt -r dev-requirements.txt
129+
uv pip install -r requirements.txt -r dev-requirements.txt
129130
130131
- name: example-pytest-selfie - pytest
131132
shell: bash

python/example-pytest-selfie/requirements.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1+
file:../selfie-lib
2+
file:../pytest-selfie
3+
pytest>=8.0.0,<9.0.0
14
flask>=3.0.3
25
openai>=1.0.0
3-
-e ../selfie-lib
4-
-e ../pytest-selfie
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
pytest>=8.0.0
2-
-e ../selfie-lib
1+
file:../selfie-lib
2+
pytest>=8.0.0,<9.0.0

0 commit comments

Comments
 (0)