Skip to content

Commit 66dcbdb

Browse files
committed
modify github action. migrate poetry to uv
1 parent dd42606 commit 66dcbdb

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

.github/workflows/qa.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,14 @@ jobs:
2121
python-version: ${{ matrix.version }}
2222
- name: Install dependencies
2323
run: |
24-
pip install poetry
25-
poetry install
24+
# Install uv using the official installation method
25+
curl -LsSf https://astral.sh/uv/install.sh | sh
26+
27+
# Add uv to PATH
28+
export PATH="$HOME/.cargo/bin:$PATH"
29+
30+
# Use uv to install dependencies
31+
uv pip install -e .
32+
uv pip install pytest pytest-timeout pytest-asyncio pytest-cov ruff pyright bandit
2633
- name: Run QA
2734
run: make qa

.github/workflows/release.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,15 @@ jobs:
2727
python-version: '3.13'
2828
- name: Install dependencies
2929
run: |
30-
# First install Poetry in latest version, then install
31-
# build and twine in matching versions. The following
32-
# commands should not be run in a single line.
33-
pip install poetry
34-
pip install build twine
35-
poetry install
30+
# Install uv using the official installation method
31+
curl -LsSf https://astral.sh/uv/install.sh | sh
32+
33+
# Add uv to PATH
34+
export PATH="$HOME/.cargo/bin:$PATH"
35+
36+
# Use uv to install dependencies
37+
uv pip install -e .
38+
uv pip install build twine pyright bandit
3639
- name: Run QA
3740
run: make qa
3841
- name: Get next version

0 commit comments

Comments
 (0)