Skip to content

Commit dc23305

Browse files
committed
add prepare job
1 parent cf2962b commit dc23305

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/test.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,23 @@ permissions:
55

66
jobs:
77

8+
prepare:
9+
runs-on: ubuntu-latest
10+
outputs:
11+
wheel-path: ${{ steps.distribution-paths.outputs.wheel }}
12+
tarball-path: ${{ steps.distribution-paths.outputs.tarball }}
13+
steps:
14+
- uses: actions/checkout@v4
15+
with: { fetch-depth: 0 } # deep clone for setuptools-scm
16+
- uses: actions/setup-python@v5
17+
with: { python-version: "3.11" }
18+
- name: Run static analysis and format checkers
19+
run: pipx run pre-commit run --all-files --show-diff-on-failure
20+
- name: Install tox-gh plugin
21+
run: python -m pip install tox-gh>=1.2
22+
- name: Build package distribution files
23+
run: tox -e clean,build
24+
825
static_checks:
926
runs-on: ubuntu-latest
1027
steps:

0 commit comments

Comments
 (0)