@@ -20,35 +20,31 @@ jobs:
2020 override : true
2121 components : clippy, rustfmt
2222
23- - name : " 🐍 Set up Python"
24- uses : actions/setup-python@v5
25- with :
26- python-version : " 3.10"
23+ - name : " 📦 Set up uv"
24+ uses : astral-sh/setup-uv@v2
2725
28- - name : " 🧱 Install dependencies"
26+ - name : " 🧱 Install dependencies (dev + training extras) "
2927 run : |
30- python -m pip install --upgrade pip
31- python -m pip install maturin pytest black ruff mypy
32- python -m pip install -e .[dev,training]
28+ uv sync --extra dev --extra training
3329
34- - name : " ⚙️ Build Rust extension (develop mode)"
30+ - name : " ⚙️ Build Rust extension (develop mode in uv env )"
3531 run : |
36- maturin develop --release
32+ uv run maturin develop --release
3733
3834 - name : " 🧹 Lint and format check"
3935 run : |
4036 cargo fmt -- --check
4137 cargo clippy -- -D warnings
42- black --check python/
43- ruff check python/
44- mypy python/
38+ uv run black --check python/
39+ uv run ruff check python/
40+ uv run mypy python/
4541
4642 - name : " 🧪 Run Safety Test Suite"
4743 env :
4844 PYTHONPATH : ./python
4945 run : |
5046 echo "Running pytest safety checks..."
51- pytest -v python/tests/test_safety.py
47+ uv run pytest -v python/tests/test_safety.py
5248
5349 - name : " ✅ Summary"
5450 if : success()
6561 - uses : actions/checkout@v4
6662 - uses : astral-sh/setup-uv@v2
6763 - name : Install dependencies
68- run : uv sync --group dev --group training
64+ run : uv sync --extra dev --extra training
6965 - name : Run tests
7066 run : uv run pytest -q python
0 commit comments