Skip to content

Commit 0f6282e

Browse files
committed
use uv
1 parent 20bbd5f commit 0f6282e

2 files changed

Lines changed: 19 additions & 28 deletions

File tree

.github/workflows/pypi.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,11 @@ jobs:
1010
pypi:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
14-
- uses: actions/setup-python@v5
15-
with:
16-
python-version: '3.11'
17-
architecture: x64
18-
- run: pip install poetry==1.8.3
19-
- run: poetry build
20-
- uses: pypa/gh-action-pypi-publish@release/v1
21-
with:
22-
user: __token__
23-
password: ${{ secrets.PYPI_TOKEN }}
13+
- uses: actions/checkout@v4
14+
- name: Install uv
15+
uses: astral-sh/setup-uv@v6
16+
- run: uv build
17+
- uses: pypa/gh-action-pypi-publish@release/v1
18+
with:
19+
user: __token__
20+
password: ${{ secrets.PYPI_TOKEN }}

.github/workflows/test-pypi.yml

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,18 @@ on:
44
paths:
55
- 'src/**'
66
- 'pyproject.toml'
7-
87
jobs:
98
test_pypi:
109
runs-on: ubuntu-latest
1110
steps:
12-
- uses: actions/checkout@v4
13-
- uses: actions/setup-python@v5
14-
with:
15-
python-version: '3.11'
16-
architecture: x64
17-
- run: pip install poetry==1.8.3
18-
- run: >-
19-
poetry version patch &&
20-
version=$(poetry version | awk '{print $2}') &&
21-
poetry version $version.dev.$(date +%s)
22-
- run: poetry build
23-
- uses: pypa/gh-action-pypi-publish@v1.0.0a0
24-
with:
25-
user: __token__
26-
password: ${{ secrets.TEST_PYPI_TOKEN }}
27-
repository_url: https://test.pypi.org/legacy/
11+
- uses: actions/checkout@v4
12+
- name: Install uv
13+
uses: astral-sh/setup-uv@v6
14+
- run: >-
15+
uv version --bump patch && version=$(uv version | awk '{print $2}') && uv version $version.dev.$(date +%s)
16+
- run: uv build
17+
- uses: pypa/gh-action-pypi-publish@v1.0.0a0
18+
with:
19+
user: __token__
20+
password: ${{ secrets.TEST_PYPI_TOKEN }}
21+
repository_url: https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)