File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release wheel on PyPI
2+
3+ jobs :
4+ pypi-publish :
5+ name : upload release to PyPI
6+ runs-on : ubuntu-22.04
7+
8+ # Only run manually
9+ on : workflow_dispatch
10+
11+ # Specifying a GitHub environment is optional, but strongly encouraged
12+ environment : pypi
13+
14+ permissions :
15+ # IMPORTANT: this permission is mandatory for Trusted Publishing
16+ id-token : write
17+
18+ steps :
19+ - uses : actions/checkout@v4
20+ with :
21+ persist-credentials : false
22+
23+ - name : Install the latest version of uv
24+ uses : astral-sh/setup-uv@v6
25+ with :
26+ version : " latest"
27+ python-version : 3.13
28+ enable-cache : true
29+
30+ - name : Install dependencies with uv
31+ run : uv sync
32+
33+ - name : Run unit tests with uv
34+ run : |
35+ mkdir -p reports/pytest-uv
36+ uv run pytest -W error -v tests/ --durations=10 --junitxml=reports/pytest-uv/py3.xml
37+
38+ - name : Build wheel file
39+ run : uv build
40+
41+ - name : Publish package distributions to PyPI
42+ run : uv publish --trusted-publishing=always
You can’t perform that action at this time.
0 commit comments