Skip to content

Commit 989f96e

Browse files
authored
fix uv setup
1 parent 6c8682d commit 989f96e

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

.github/workflows/dev.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Remote Dev Fast-Track
22

33
on:
44
push:
5-
branches: [ remote-dev ] # Only runs when you push from your phone
5+
branches: [ remote-dev ]
66

77
jobs:
88
fast_dev_check:
@@ -19,26 +19,28 @@ jobs:
1919
uses: astral-sh/setup-uv@v5
2020
with:
2121
enable-cache: true
22+
python-version: "3.13t" # 't' for free-threading if you're testing that!
2223

23-
- name: Install System Dependencies
24+
- name: Install System Build Tools
2425
run: |
2526
sudo apt-get update
2627
sudo apt-get install -y clang llvm ninja-build
2728
28-
- name: Install & Build Local (Fast)
29-
# Instead of building wheels for every Python version,
30-
# we just install the current source into the runner environment.
29+
- name: Build & Install Project
30+
# We drop --system. uv will create a managed venv automatically.
31+
# This installs deps + your C++ extension in one go.
3132
run: |
32-
uv pip install --system numpy psutil
33-
uv pip install --system .
33+
uv pip install numpy psutil
34+
uv pip install .
3435
3536
- name: Run Core Tests
37+
# Use 'uv run' to ensure we use the environment we just built
3638
run: |
37-
python tests/test_core.py
39+
uv run python tests/test_core.py
3840
3941
- name: Quick Benchmarks
4042
run: |
4143
echo "## Dev Benchmarks" >> $GITHUB_STEP_SUMMARY
4244
echo '```' >> $GITHUB_STEP_SUMMARY
43-
python tests/benchmark.py --leak >> $GITHUB_STEP_SUMMARY
45+
uv run python tests/benchmark.py --leak >> $GITHUB_STEP_SUMMARY
4446
echo '```' >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)