File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Publish to PyPI
2- on : push
2+ on :
3+ push :
4+ tags :
5+ - ' v*'
36jobs :
47 build-n-publish :
58 name : Build and publish to PyPI
811 # IMPORTANT: this permission is mandatory for trusted publishing
912 id-token : write
1013 steps :
11- - uses : actions/checkout@v4
14+ - uses : actions/checkout@v6
1215 - name : Set up uv
13- uses : astral-sh/setup-uv@v5
16+ uses : astral-sh/setup-uv@v7
1417 with :
1518 python-version : " 3.x"
1619 - name : Build a binary wheel and a source tarball
1720 run : uv build
1821 - name : Publish distribution 📦 to PyPI
19- if : startsWith(github.ref, 'refs/tags')
2022 run : uv publish
Original file line number Diff line number Diff line change 1616 python-version : ['3.10', '3.11', '3.12']
1717
1818 steps :
19- - uses : actions/checkout@v4
19+ - uses : actions/checkout@v6
2020 - name : Set up uv
21- uses : astral-sh/setup-uv@v5
21+ uses : astral-sh/setup-uv@v7
2222 with :
2323 python-version : ${{ matrix.python-version }}
2424 - name : Install dependencies
@@ -34,18 +34,20 @@ jobs:
3434 lint :
3535 runs-on : ubuntu-latest
3636 steps :
37- - uses : actions/checkout@v4
38- - name : Set up uv
39- uses : astral-sh/setup-uv@v5
37+ - uses : actions/checkout@v6
38+ - name : Set up uv
39+ uses : astral-sh/setup-uv@v7
40+
4041 - name : Run ruff format
4142 run : uv run ruff format --check .
4243
4344 check-types-published :
4445 runs-on : ubuntu-latest
4546 steps :
46- - uses : actions/checkout@v4
47- - name : Set up uv
48- uses : astral-sh/setup-uv@v5
47+ - uses : actions/checkout@v6
48+ - name : Set up uv
49+ uses : astral-sh/setup-uv@v7
50+
4951 with :
5052 python-version : ' 3.12'
5153 - name : Build package
You can’t perform that action at this time.
0 commit comments