File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ on :
2+ release :
3+ types :
4+ - published
5+
6+ name : release
7+
8+ jobs :
9+ pypi-publish :
10+ name : upload release to PyPI
11+ runs-on : ubuntu-latest
12+ # Specifying a GitHub environment is optional, but strongly encouraged
13+ environment : pypi
14+ permissions :
15+ # IMPORTANT: this permission is mandatory for Trusted Publishing
16+ id-token : write
17+ steps :
18+ - name : Checkout repository
19+ uses : actions/checkout@v4
20+
21+ - name : Install uv
22+ uses : astral-sh/setup-uv@v5
23+ with :
24+ version : 0.7.17
25+
26+ - name : Install the project
27+ run : uv sync --locked --all-extras --dev
28+
29+ - name : Run tests
30+ # For example, using `pytest`
31+ run : uv run pytest tests
32+
33+ - name : Build package distributions
34+ run : uv build
35+
36+ - name : Publish package distributions to PyPI
37+ run : uv publish
You can’t perform that action at this time.
0 commit comments