File tree Expand file tree Collapse file tree 2 files changed +26
-25
lines changed
Expand file tree Collapse file tree 2 files changed +26
-25
lines changed Original file line number Diff line number Diff line change 66 branches : [ main ]
77 workflow_dispatch :
88
9+ permissions : {}
10+
911jobs :
1012 tox :
1113 name : ${{ matrix.name }}
1214 runs-on : ubuntu-latest
15+
16+ permissions :
17+ contents : read
18+
19+ container : python:${{ matrix.python }}
20+
1321 strategy :
1422 fail-fast : false
1523 matrix :
@@ -25,18 +33,16 @@ jobs:
2533 - {name: 'package', python: '3.14', tox: package}
2634
2735 steps :
28- - uses : actions/checkout@v4
29-
30- - uses : actions/setup-python@v5
36+ - uses : pgjones/actions/tox@dbbee601c084d000c4fc711d4b27cb306e15ead1 # v1
3137 with :
32- python-version : ${{ matrix.python }}
38+ environment : ${{ matrix.tox }}
3339
34- - name : update pip
35- run : |
36- pip install -U wheel
37- pip install -U setuptools
38- python -m pip install -U pip
40+ zizmor :
41+ name : Zizmor
42+ runs-on : ubuntu-latest
3943
40- - run : pip install tox
44+ permissions :
45+ contents : read
4146
42- - run : tox -e ${{ matrix.tox }}
47+ steps :
48+ - uses : pgjones/actions/zizmor@dbbee601c084d000c4fc711d4b27cb306e15ead1 # v1
Original file line number Diff line number Diff line change 33 push :
44 tags :
55 - ' *'
6+
7+ permissions : {}
8+
69jobs :
710 build :
811 runs-on : ubuntu-latest
9- steps :
10- - uses : actions/checkout@v4
11-
12- - uses : actions/setup-python@v5
13- with :
14- python-version : 3.14
1512
16- - run : |
17- pip install pdm
18- pdm build
13+ permissions :
14+ contents : read
1915
20- - uses : actions/upload-artifact@v4
21- with :
22- path : ./dist
16+ steps :
17+ - uses : pgjones/actions/build@dbbee601c084d000c4fc711d4b27cb306e15ead1 # v1
2318
2419 pypi-publish :
2520 needs : ['build']
3126 # IMPORTANT: this permission is mandatory for trusted publishing
3227 id-token : write
3328 steps :
34- - uses : actions/download-artifact@v4
29+ - uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
3530
3631 - name : Publish package distributions to PyPI
37- uses : pypa/gh-action-pypi-publish@release/v1
32+ uses : pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
3833 with :
3934 packages-dir : artifact/
You can’t perform that action at this time.
0 commit comments