Skip to content

Commit c59cde2

Browse files
committed
Modernise workflows
1 parent c5376bf commit c59cde2

File tree

2 files changed

+17
-16
lines changed

2 files changed

+17
-16
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,16 @@ jobs:
99

1010
steps:
1111
- name: checkout
12-
uses: actions/checkout@v4
12+
uses: actions/checkout@v6
1313

14-
- name: python
15-
uses: actions/setup-python@v5
16-
with:
17-
python-version: "3.10"
14+
- name: Install uv
15+
uses: astral-sh/setup-uv@v7
1816

19-
- name: dependencies
20-
run: |
21-
python -m pip install --upgrade pip
22-
pip install -e '.[dev]'
17+
- name: Set up Python
18+
run: uv python install
19+
20+
- name: Dependencies
21+
run: uv sync --all-extras --dev
2322

2423
- name: Format
2524
run: |

.github/workflows/publish.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,23 @@ jobs:
1818
steps:
1919
- name: Checkout
2020
id: checkout
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@v6
2222
with:
2323
fetch-depth: 0
2424

25-
- name: Setup Python
26-
id: python
27-
uses: actions/setup-python@v5
25+
- name: Install uv
26+
uses: astral-sh/setup-uv@v7
2827
with:
29-
python-version: '3.10'
28+
activate-environment: true
29+
30+
- name: Set up Python
31+
run: uv python install
3032

3133
- name: Build
3234
id: build
3335
run: |
34-
python -m pip install '.[build]'
35-
python -m build
36+
uv sync --group=build
37+
uv run -m build
3638
twine check --strict dist/*
3739
3840
- name: Publish on PyPI

0 commit comments

Comments
 (0)