Skip to content

Commit a3060d2

Browse files
authored
Add release pipeline (#9)
1 parent 11704c5 commit a3060d2

File tree

2 files changed

+51
-2
lines changed

2 files changed

+51
-2
lines changed

.github/workflows/release.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
environment: release
11+
permissions:
12+
id-token: write # For trusted publishing (optional but recommended)
13+
contents: read
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: "3.11"
22+
23+
- name: Install uv
24+
uses: astral-sh/setup-uv@v3
25+
26+
- name: Install dependencies
27+
run: |
28+
uv pip install --system .
29+
uv pip install --system ".[dev]"
30+
31+
- name: Run tests
32+
run: |
33+
uv run pytest tests --cov --cov-report=term-missing -v
34+
timeout-minutes: 10
35+
36+
- name: Check coverage threshold
37+
run: |
38+
uv run coverage report --fail-under=93
39+
40+
- name: Build package
41+
run: |
42+
uv build
43+
44+
- name: Publish to PyPI
45+
uses: pypa/gh-action-pypi-publish@release/v1
46+
with:
47+
password: ${{ secrets.PYPI_API_TOKEN }}
48+
# For trusted publishing (more secure, optional):
49+
# repository-url: https://upload.pypi.org/legacy/

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "genai-bench"
3-
version = "0.0.0+DEV-DONOTUSE"
4-
description = ""
3+
version = "0.0.1"
4+
description = "A powerful benchmark tool designed for comprehensive token-level performance evaluation of large language model (LLM) serving systems."
55
authors = [{ name = "Chang Su", email = "[email protected]" }]
66
requires-python = ">=3.11,<3.13"
77
readme = "README.md"

0 commit comments

Comments
 (0)