File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Python Package
2+
3+ on :
4+ push :
5+ tags :
6+ - " v*.*.*"
7+ workflow_dispatch :
8+
9+ jobs :
10+ build-and-publish :
11+ runs-on : ubuntu-latest
12+
13+ permissions :
14+ contents : read
15+ packages : write
16+
17+ steps :
18+ - name : Checkout repository
19+ uses : actions/checkout@v4
20+
21+ - name : Set up uv
22+ uses : astral-sh/setup-uv@v3
23+ with :
24+ python-version : " 3.12"
25+
26+ - name : Install dependencies
27+ run : |
28+ uv python install 3.12
29+ uv sync --all-extras
30+
31+ - name : Run tests
32+ run : make test
33+
34+ - name : Build package
35+ run : make build
36+
37+ - name : Publish to PyPI
38+ if : startsWith(github.ref, 'refs/tags/')
39+ uses : pypa/gh-action-pypi-publish@release/v1
40+ with :
41+ password : ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments