File tree Expand file tree Collapse file tree 2 files changed +45
-0
lines changed
Expand file tree Collapse file tree 2 files changed +45
-0
lines changed Original file line number Diff line number Diff line change 3333 python-version : ${{ matrix.python-version }}
3434 allow-prereleases : true
3535
36+ - name : Create virtual environment with uv
37+ run : uv venv
38+
3639 - name : Install dependencies
3740 run : |
3841 uv sync --group test
5962 with :
6063 python-version : " 3.12"
6164
65+ - name : Create virtual environment with uv
66+ run : uv venv
67+
6268 - name : Install dependencies
6369 run : uv sync --group dev
6470
8086 with :
8187 python-version : " 3.12"
8288
89+ - name : Create virtual environment with uv
90+ run : uv venv
91+
8392 - name : Install build tools
8493 run : uv pip install build
8594
Original file line number Diff line number Diff line change 1+ name : Publish to PyPI
2+
3+ on :
4+ push :
5+ tags :
6+ - ' *'
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v4
13+
14+ - name : Install uv
15+ uses : astral-sh/setup-uv@v4
16+ with :
17+ version : " latest"
18+
19+ - name : Set up Python
20+ uses : actions/setup-python@v5
21+ with :
22+ python-version : " 3.12"
23+
24+ - name : Create virtual environment with uv
25+ run : uv venv
26+
27+ - name : Install build tools
28+ run : uv pip install build
29+
30+ - name : Build package
31+ run : python -m build
32+
33+ - name : Publish to PyPI
34+ uses : pypa/gh-action-pypi-publish@release/v1
35+ with :
36+ password : ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments