Skip to content

Commit 5ed387e

Browse files
committed
Switch to my composite actions and add Zizmor
This removes code duplication.
1 parent 327c74b commit 5ed387e

File tree

2 files changed

+15
-25
lines changed

2 files changed

+15
-25
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,16 @@ jobs:
2525
- {name: 'package', python: '3.14', tox: package}
2626

2727
steps:
28-
- uses: actions/checkout@v4
29-
30-
- uses: actions/setup-python@v5
28+
- uses: pgjones/actions/tox@dbbee601c084d000c4fc711d4b27cb306e15ead1 # v1
3129
with:
32-
python-version: ${{ matrix.python }}
30+
environment: ${{ matrix.tox }}
3331

34-
- name: update pip
35-
run: |
36-
pip install -U wheel
37-
pip install -U setuptools
38-
python -m pip install -U pip
32+
zizmor:
33+
name: Zizmor
34+
runs-on: ubuntu-latest
3935

40-
- run: pip install tox
36+
permissions:
37+
contents: read
4138

42-
- run: tox -e ${{ matrix.tox }}
39+
steps:
40+
- uses: pgjones/actions/zizmor@dbbee601c084d000c4fc711d4b27cb306e15ead1 # v1

.github/workflows/publish.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,12 @@ on:
66
jobs:
77
build:
88
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
159

16-
- run: |
17-
pip install pdm
18-
pdm build
10+
permissions:
11+
contents: read
1912

20-
- uses: actions/upload-artifact@v4
21-
with:
22-
path: ./dist
13+
steps:
14+
- uses: pgjones/actions/build@dbbee601c084d000c4fc711d4b27cb306e15ead1 # v1
2315

2416
pypi-publish:
2517
needs: ['build']
@@ -31,9 +23,9 @@ jobs:
3123
# IMPORTANT: this permission is mandatory for trusted publishing
3224
id-token: write
3325
steps:
34-
- uses: actions/download-artifact@v4
26+
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
3527

3628
- name: Publish package distributions to PyPI
37-
uses: pypa/gh-action-pypi-publish@release/v1
29+
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
3830
with:
3931
packages-dir: artifact/

0 commit comments

Comments
 (0)