Skip to content

Commit fb801ee

Browse files
committed
modify github action uv migration
1 parent 66dcbdb commit fb801ee

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

.github/workflows/qa.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,14 @@ jobs:
2424
# Install uv using the official installation method
2525
curl -LsSf https://astral.sh/uv/install.sh | sh
2626
27-
# Add uv to PATH
28-
export PATH="$HOME/.cargo/bin:$PATH"
27+
# Add uv to PATH (use .local/bin where it's actually installed)
28+
export PATH="$HOME/.local/bin:$PATH"
29+
30+
# Create a virtual environment or use system flag
31+
uv sync
2932
3033
# Use uv to install dependencies
31-
uv pip install -e .
32-
uv pip install pytest pytest-timeout pytest-asyncio pytest-cov ruff pyright bandit
34+
uv python -m pip install -e .
35+
uv python -m pip install pytest pytest-timeout pytest-asyncio pytest-cov ruff pyright bandit
3336
- name: Run QA
3437
run: make qa

.github/workflows/release.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,15 @@ jobs:
3030
# Install uv using the official installation method
3131
curl -LsSf https://astral.sh/uv/install.sh | sh
3232
33-
# Add uv to PATH
34-
export PATH="$HOME/.cargo/bin:$PATH"
33+
# Add uv to PATH (use .local/bin where it's actually installed)
34+
export PATH="$HOME/.local/bin:$PATH"
35+
36+
# Create a virtual environment or use system flag
37+
uv sync
3538
3639
# Use uv to install dependencies
37-
uv pip install -e .
38-
uv pip install build twine pyright bandit
40+
uv python -m pip install -e .
41+
uv python -m pip install build twine pyright bandit
3942
- name: Run QA
4043
run: make qa
4144
- name: Get next version

0 commit comments

Comments
 (0)