Skip to content

Commit 88fd1a1

Browse files
committed
Update gh-actions workflows for uv
1 parent 5d72a16 commit 88fd1a1

File tree

3 files changed

+14
-22
lines changed

3 files changed

+14
-22
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,20 @@ jobs:
2222
- name: Checkout
2323
uses: actions/checkout@v4
2424

25-
- name: Install Rye
26-
run: |
27-
curl -sSf https://rye.astral.sh/get | RYE_INSTALL_OPTION="--yes" bash
28-
echo "$HOME/.rye/shims" >> $GITHUB_PATH
25+
- name: Install uv
26+
uses: astral-sh/setup-uv@v6
2927

3028
- name: Install Python ${{ matrix.python-version }} & dependencies
31-
run: |
32-
rye pin ${{ matrix.python-version }}
33-
rye sync --update-all --all-features
29+
run: uv sync --all-extras --all-groups --upgrade --python ${{ matrix.python-version }}
3430

3531
- name: Run ruff lint check
36-
run: rye run ruff check --diff
32+
run: uv run ruff check --diff
3733

3834
- name: Run ruff format check
39-
run: rye run ruff format --check --diff
35+
run: uv run ruff format --check --diff
4036

4137
- name: Run pytest
42-
run: rye run pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=src | tee pytest-coverage.txt
38+
run: uv run pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=src | tee pytest-coverage.txt
4339

4440
- name: Pytest Coverage Comment
4541
uses: MishaKav/pytest-coverage-comment@main

.github/workflows/publish_mkdocs.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@ jobs:
1212
- name: Checkout
1313
uses: actions/checkout@v4
1414

15-
- name: Install Rye
16-
run: |
17-
curl -sSf https://rye.astral.sh/get | RYE_INSTALL_OPTION="--yes" bash
18-
echo "$HOME/.rye/shims" >> $GITHUB_PATH
15+
- name: Install uv
16+
uses: astral-sh/setup-uv@v6
1917

2018
- name: Install Python & MkDocs & Plugins
21-
run: rye sync
19+
run: uv sync
2220

2321
- name: Publish document
24-
run: rye run mkdocs gh-deploy --force
22+
run: uv run mkdocs gh-deploy --force

.github/workflows/publish_to_pypi.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@ jobs:
1515
- name: Checkout
1616
uses: actions/checkout@v4
1717

18-
- name: Install Rye
19-
run: |
20-
curl -sSf https://rye.astral.sh/get | RYE_INSTALL_OPTION="--yes" bash
21-
echo "$HOME/.rye/shims" >> $GITHUB_PATH
18+
- name: Install uv
19+
uses: astral-sh/setup-uv@v6
2220

2321
- name: Build
24-
run: rye build
22+
run: uv build
2523

2624
- name: Publish
27-
run: rye publish -u $PYPI_USERNAME --token $PYPI_PASSWORD -y
25+
run: uv publish -u $PYPI_USERNAME --token $PYPI_PASSWORD

0 commit comments

Comments
 (0)