Skip to content

Commit aabc1f2

Browse files
committed
update GH actions to use uv
1 parent 639b812 commit aabc1f2

2 files changed

Lines changed: 13 additions & 12 deletions

File tree

.github/workflows/pypi_deployment.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ jobs:
1616
with:
1717
fetch-depth: 0
1818

19+
- name: Install uv
20+
uses: astral-sh/setup-uv@v5
21+
with:
22+
enable-cache: true
23+
1924
- name: Set up Python
20-
uses: actions/setup-python@v3
25+
uses: actions/setup-python@v5
2126
with:
2227
python-version: '3.x'
2328

24-
- name: Install dependencies
25-
run: |
26-
python -m pip install --upgrade pip
27-
pip install build wheel setuptools
28-
2929
- name: Build package
30-
run: python -m build
30+
run: uv build
3131

3232
- name: Publish package
3333
uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/tests.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@ jobs:
55
runs-on: ubuntu-latest
66
steps:
77
- uses: actions/checkout@v4
8+
- name: Install uv
9+
uses: astral-sh/setup-uv@v5
10+
with:
11+
enable-cache: true
812
- name: Set up Python
913
uses: actions/setup-python@v5
1014
with:
1115
python-version: '3.x'
1216
- name: Install dependencies
13-
run: |
14-
python -m pip install --upgrade pip
15-
pip install -e .[test]
17+
run: uv sync --group test
1618
- name: Test with pytest
17-
run: |
18-
pytest tests/ -v
19+
run: uv run pytest tests/ -v

0 commit comments

Comments
 (0)