Skip to content

Commit 96d849c

Browse files
committed
[ci] improve
1 parent 813d357 commit 96d849c

File tree

3 files changed

+10
-42
lines changed

3 files changed

+10
-42
lines changed

.github/workflows/pypi.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/python-package.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@ on:
44
push:
55
branches: [main]
66
tags:
7-
- "[0-9]+.[0-9]+.[0-9]+"
8-
- "[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+"
9-
- "[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+"
10-
- "[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+"
11-
pull_request:
12-
branches: [main]
7+
# Publish on any tag starting with a `v`, e.g., v0.1.0
8+
- "[0-9]+.[0-9]+.[0-9]"
9+
# pull_request:
10+
# branches: [main]
1311

1412
jobs:
1513
release-build:
@@ -38,6 +36,9 @@ jobs:
3836
run: |
3937
uv build
4038
39+
- name: Publish on pypi
40+
run: uv publish
41+
4142
- name: Upload Built Package
4243
uses: actions/upload-artifact@v4
4344
with:

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ name: Run Tests and Update Coverage Badge
33
on:
44
push:
55
branches: [main]
6-
pull_request:
6+
tags:
7+
- "[0-9]+.[0-9]+.[0-9]"
78

89
jobs:
910
test:
@@ -34,6 +35,7 @@ jobs:
3435
3536
- name: Generate badge
3637
run: |
38+
uv tool install genbadge
3739
uv run genbadge coverage -i coverage.xml -o $BADGE_SOURCE
3840
3941
- uses: actions/checkout@v1

0 commit comments

Comments
 (0)