Skip to content

Commit eb8cfa9

Browse files
pgjonesdavidism
authored andcommitted
Utilise the new pallets actions
This should allow for a large reduction in duplicated action code across the pallet's repos.
1 parent f61172b commit eb8cfa9

File tree

1 file changed

+8
-18
lines changed

1 file changed

+8
-18
lines changed

.github/workflows/tests.yaml

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,28 +24,18 @@ jobs:
2424
- {name: Minimum Versions, python: '3.12', tox: py-min}
2525
- {name: Development Versions, python: '3.9', tox: py-dev}
2626
steps:
27-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
28-
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
27+
- uses: pallets/actions/tox@5c46d4abb052877fa7e84db0ceec21b33673559e
2928
with:
29+
environment: ${{ format('py{0}', matrix.python) }}
3030
python-version: ${{ matrix.python }}
31-
allow-prereleases: true
32-
cache: pip
33-
cache-dependency-path: requirements*/*.txt
34-
- run: pip install tox
35-
- run: tox run -e ${{ matrix.tox || format('py{0}', matrix.python) }}
3631
typing:
3732
runs-on: ubuntu-latest
3833
steps:
39-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
40-
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
34+
- uses: pallets/actions/tox@5c46d4abb052877fa7e84db0ceec21b33673559e
4135
with:
36+
environment: 'typing'
4237
python-version: '3.x'
43-
cache: pip
44-
cache-dependency-path: requirements*/*.txt
45-
- name: cache mypy
46-
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
47-
with:
48-
path: ./.mypy_cache
49-
key: mypy|${{ hashFiles('pyproject.toml') }}
50-
- run: pip install tox
51-
- run: tox run -e typing
38+
workflow:
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: pallets/actions/zizmor@5c46d4abb052877fa7e84db0ceec21b33673559e

0 commit comments

Comments
 (0)