Skip to content

Commit 654f379

Browse files
committed
update actions to uv
1 parent e418554 commit 654f379

File tree

2 files changed

+15
-17
lines changed

2 files changed

+15
-17
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,31 @@ name: Publish
33
on:
44
workflow_dispatch:
55
push:
6-
branches: ["main"]
6+
tags:
7+
- '*'
78

89
jobs:
9-
test:
10-
11-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
12-
10+
run:
1311
runs-on: windows-latest
1412
environment:
1513
name: pypi
16-
url: https://pypi.org/p/memobj
1714
permissions:
1815
id-token: write
16+
contents: read
1917

2018
steps:
21-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@v5
2220
- name: Set up Python
2321
uses: actions/setup-python@v5
2422
with:
2523
python-version: "3.13"
2624
- name: Update pip
2725
run: python -m pip install -U pip
28-
- name: Set up Poetry
29-
uses: abatilo/actions-poetry@v4
26+
- name: Install uv
27+
uses: astral-sh/setup-uv@v6
3028
- name: Install dependencies
31-
run: poetry install
29+
run: uv sync --all-groups
3230
- name: Build
33-
run: poetry build
31+
run: uv build
3432
- name: Publish
35-
uses: pypa/gh-action-pypi-publish@release/v1.10
33+
uses: uv publish

.github/workflows/tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
strategy:
2424
fail-fast: false
2525
matrix:
26-
python-version: [ "3.11", "3.12", "3.13" ]
26+
python-version: [ "3.10", "3.11", "3.12", "3.13" ]
2727

2828
steps:
2929
- uses: actions/checkout@v4
@@ -33,9 +33,9 @@ jobs:
3333
python-version: ${{ matrix.python-version }}
3434
- name: Update pip
3535
run: python -m pip install -U pip
36-
- name: Set up Poetry
37-
uses: abatilo/actions-poetry@v4
36+
- name: Install uv
37+
uses: astral-sh/setup-uv@v6
3838
- name: Install dependencies
39-
run: poetry install
39+
run: uv sync --all-groups
4040
- name: Run tests
41-
run: poetry run pytest
41+
run: uv run pytest

0 commit comments

Comments
 (0)