Skip to content

Commit f444837

Browse files
authored
Merge pull request #561 from FalkorDB/copilot/switch-ci-to-uv-sync
Switch CI backend dependency installation from pip to uv
2 parents 6643fe4 + 3c44cd8 commit f444837

2 files changed

Lines changed: 16 additions & 4 deletions

File tree

.github/workflows/nextjs.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,13 @@ jobs:
4646
with:
4747
python-version: "3.12"
4848

49+
- name: Install uv
50+
uses: astral-sh/setup-uv@v5
51+
with:
52+
version: "latest"
53+
4954
- name: Install backend dependencies
50-
run: pip install -e ".[test]"
55+
run: uv sync --extra test
5156

5257
docker-build:
5358
runs-on: ubuntu-latest

.github/workflows/playwright.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
test:
1414
timeout-minutes: 60
1515
runs-on: ubuntu-latest
16+
env:
17+
PYTHONPATH: ${{ github.workspace }}
1618
strategy:
1719
fail-fast: false
1820
matrix:
@@ -37,8 +39,13 @@ jobs:
3739
with:
3840
python-version: '3.12'
3941

42+
- name: Install uv
43+
uses: astral-sh/setup-uv@v5
44+
with:
45+
version: "latest"
46+
4047
- name: Install backend dependencies
41-
run: pip install -e .
48+
run: uv sync
4249

4350
- name: Install frontend dependencies
4451
working-directory: ./app
@@ -51,7 +58,7 @@ jobs:
5158
run: npm run build
5259

5360
- name: Seed test data into FalkorDB
54-
run: python e2e/seed_test_data.py
61+
run: uv run python e2e/seed_test_data.py
5562

5663
- name: Install Playwright npm dependencies
5764
run: |
@@ -81,7 +88,7 @@ jobs:
8188
CODE_GRAPH_PUBLIC: "1"
8289
MODEL_NAME: "openai/gpt-4.1-mini"
8390
run: |
84-
flask --app api/index.py run --host 0.0.0.0 --port 5000 &
91+
uv run flask --app api/index.py run --host 0.0.0.0 --port 5000 &
8592
# Wait for Flask to be ready
8693
timeout 30 bash -c 'until curl -s http://localhost:5000/ > /dev/null 2>&1; do sleep 0.5; done'
8794
npx playwright test --shard=${{ matrix.shard }}/2 --reporter=dot,list

0 commit comments

Comments
 (0)