Skip to content

Commit 954ce28

Browse files
committed
Use my composite actions
To avoid code duplication and make management easier.
1 parent b710204 commit 954ce28

File tree

2 files changed

+12
-29
lines changed

2 files changed

+12
-29
lines changed

.github/workflows/ci.yml

+9-14
Original file line numberDiff line numberDiff line change
@@ -25,29 +25,24 @@ jobs:
2525
- {name: 'package', python: '3.13', tox: package}
2626

2727
steps:
28-
- uses: actions/checkout@v3
29-
30-
- uses: actions/setup-python@v3
28+
- uses: pgjones/actions/tox@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
39-
40-
- run: pip install tox
32+
zizmor:
33+
name: Zizmor
34+
runs-on: ubuntu-latest
4135

42-
- run: tox -e ${{ matrix.tox }}
36+
steps:
37+
- uses: pgjones/actions/zizmor@v1
4338

4439
compliance:
4540
runs-on: ubuntu-latest
4641

4742
steps:
48-
- uses: actions/checkout@v3
43+
- uses: actions/checkout@v4
4944

50-
- uses: actions/setup-python@v3
45+
- uses: actions/setup-python@v5
5146
with:
5247
python-version: '3.13'
5348

.github/workflows/publish.yml

+3-15
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,7 @@ jobs:
77
build:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v3
11-
12-
- uses: actions/setup-python@v3
13-
with:
14-
python-version: 3.13
15-
16-
- run: |
17-
pip install pdm
18-
pdm build
19-
20-
- uses: actions/upload-artifact@v3
21-
with:
22-
path: ./dist
10+
- uses: pgjones/actions/build@v1
2311

2412
pypi-publish:
2513
needs: ['build']
@@ -31,9 +19,9 @@ jobs:
3119
# IMPORTANT: this permission is mandatory for trusted publishing
3220
id-token: write
3321
steps:
34-
- uses: actions/download-artifact@v3
22+
- uses: actions/download-artifact@v4
3523

3624
- name: Publish package distributions to PyPI
3725
uses: pypa/gh-action-pypi-publish@release/v1
3826
with:
39-
packages_dir: artifact/
27+
packages-dir: artifact/

0 commit comments

Comments
 (0)