Skip to content

Commit 2d057ae

Browse files
fix testing pipeline and add automatic push on new tag
1 parent 518a590 commit 2d057ae

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ jobs:
3333
python-version: ${{ matrix.python-version }}
3434
allow-prereleases: true
3535

36+
- name: Create virtual environment with uv
37+
run: uv venv
38+
3639
- name: Install dependencies
3740
run: |
3841
uv sync --group test
@@ -59,6 +62,9 @@ jobs:
5962
with:
6063
python-version: "3.12"
6164

65+
- name: Create virtual environment with uv
66+
run: uv venv
67+
6268
- name: Install dependencies
6369
run: uv sync --group dev
6470

@@ -80,6 +86,9 @@ jobs:
8086
with:
8187
python-version: "3.12"
8288

89+
- name: Create virtual environment with uv
90+
run: uv venv
91+
8392
- name: Install build tools
8493
run: uv pip install build
8594

.github/workflows/publish.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Install uv
15+
uses: astral-sh/setup-uv@v4
16+
with:
17+
version: "latest"
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: "3.12"
23+
24+
- name: Create virtual environment with uv
25+
run: uv venv
26+
27+
- name: Install build tools
28+
run: uv pip install build
29+
30+
- name: Build package
31+
run: python -m build
32+
33+
- name: Publish to PyPI
34+
uses: pypa/gh-action-pypi-publish@release/v1
35+
with:
36+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)