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+ ---
2+ name : Publish
3+ on :
4+ push :
5+ tags : [v*] # Publish on any tag starting with a `v`, e.g., v0.1.0
6+ jobs :
7+ run :
8+ runs-on : ubuntu-latest
9+ environment :
10+ name : pypi
11+ permissions :
12+ id-token : write
13+ contents : read
14+ steps :
15+ - name : Checkout
16+ uses : actions/checkout@v6
17+ - name : Install uv
18+ uses : astral-sh/setup-uv@8.1.0
19+ - name : Install Python 3.10
20+ run : uv python install 3.10
21+ - name : Build
22+ run : uv build
23+ # Check that basic features work and we didn't miss include crucial files
24+ - name : Smoke test (wheel)
25+ run : uv run --isolated --no-project --with dist/*.whl tests/test_models/test_models.py
26+ - name : Smoke test (source distribution)
27+ run : uv run --isolated --no-project --with dist/*.tar.gz tests/test_models/test_models.py
28+ - name : Publish
29+ run : uv publish
You can’t perform that action at this time.
0 commit comments