Skip to content

Commit 21bfe5e

Browse files
Use the reusable workflow for packaging
1 parent 15a702a commit 21bfe5e

File tree

1 file changed

+5
-36
lines changed

1 file changed

+5
-36
lines changed

.github/workflows/tests.yml

Lines changed: 5 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -12,42 +12,11 @@ jobs:
1212
uses: tskit-dev/.github/.github/workflows/lint.yml@v2
1313

1414
packaging:
15-
name: Packaging
16-
runs-on: ubuntu-latest
17-
steps:
18-
- name: Cancel Previous Runs
19-
uses: styfle/cancel-workflow-action@0.13.0
20-
with:
21-
access_token: ${{ github.token }}
22-
23-
- name: Checkout
24-
uses: actions/checkout@v6.0.2
25-
with:
26-
submodules: true
27-
28-
- name: Install GSL
29-
run: sudo apt-get update && sudo apt-get install -y libgsl-dev
30-
31-
- name: Set up Python 3.14
32-
uses: actions/setup-python@v6.1.0
33-
with:
34-
python-version: 3.14
35-
36-
- name: Install build deps
37-
run: |
38-
pip install uv
39-
uv pip install --system build twine validate-pyproject[all]
40-
41-
- name: Check package
42-
run: |
43-
validate-pyproject pyproject.toml
44-
python -m build
45-
python -m twine check --strict dist/*
46-
47-
- name: Install and run CLI
48-
run: |
49-
python -m pip install dist/*.whl
50-
msp --help
15+
name: Python packaging
16+
uses: tskit-dev/.github/.github/workflows/python-packaging.yml@main
17+
with:
18+
additional-apt-packages: libgsl-dev
19+
cli-test-cmd: msp --help
5120

5221
test:
5322
name: Python

0 commit comments

Comments
 (0)