Skip to content

Commit 7a955e0

Browse files
Migrate from poetry to uv
1 parent 1f5453c commit 7a955e0

File tree

3 files changed

+44
-1163
lines changed

3 files changed

+44
-1163
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,40 +28,44 @@ jobs:
2828
pyversion: '3.11'
2929
- name: Linux py312
3030
pyversion: '3.12'
31+
- name: Linux py313
32+
pyversion: '3.13'
33+
- name: Linux py314
34+
pyversion: '3.14'
3135
steps:
32-
- uses: actions/checkout@v2
36+
- uses: actions/checkout@v5
37+
- name: Install uv
38+
uses: astral-sh/setup-uv@v6
3339
- name: Set up Python ${{ matrix.pyversion }}
34-
uses: actions/setup-python@v2
40+
uses: actions/setup-python@v5
3541
with:
3642
python-version: ${{ matrix.pyversion }}
37-
- name: Install poetry
38-
run: pip install "poetry>=1.4.2,<1.5"
3943
- name: Install dependencies
40-
run: poetry install
44+
run: uv sync
4145
- name: Lint
42-
run: poetry run flake8
46+
run: uv run flake8
4347
- name: Test
44-
run: poetry run pytest -v --cov=patchdiff --cov-report=term-missing
48+
run: uv run pytest -v --cov=patchdiff --cov-report=term-missing
4549

4650
build:
4751
name: Build and test wheel
4852
runs-on: ubuntu-latest
4953
steps:
50-
- uses: actions/checkout@v2
54+
- uses: actions/checkout@v5
55+
- name: Install uv
56+
uses: astral-sh/setup-uv@v6
5157
- name: Set up Python 3.9
52-
uses: actions/setup-python@v2
58+
uses: actions/setup-python@v5
5359
with:
5460
python-version: '3.9'
55-
- name: Install poetry
56-
run: pip install "poetry>=1.4.2,<1.5"
5761
- name: Install dependencies
58-
run: poetry install
62+
run: uv sync
5963
- name: Build wheel
60-
run: poetry build
64+
run: uv build
6165
- name: Twine check
62-
run: poetry run twine check dist/*
66+
run: uv run twine check dist/*
6367
- name: Upload wheel artifact
64-
uses: actions/upload-artifact@v2
68+
uses: actions/upload-artifact@v4
6569
with:
6670
path: dist
6771
name: dist
@@ -72,11 +76,12 @@ jobs:
7276
needs: [test, build]
7377
if: success() && startsWith(github.ref, 'refs/tags/v')
7478
steps:
75-
- uses: actions/checkout@v2
79+
- uses: actions/checkout@v5
7680
- name: Download wheel artifact
77-
uses: actions/download-artifact@v1.0.0
81+
uses: actions/download-artifact@v4
7882
with:
7983
name: dist
84+
path: dist
8085
- name: Get version from git ref
8186
id: get_version
8287
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}

0 commit comments

Comments
 (0)