Skip to content

Commit 439311a

Browse files
jeromekelleherbenjeffery
authored andcommitted
Add packaging check to CI
1 parent ba6f9f4 commit 439311a

1 file changed

Lines changed: 39 additions & 1 deletion

File tree

.github/workflows/tests.yml

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,44 @@ jobs:
1313
name: Lint
1414
uses: tskit-dev/.github/.github/workflows/lint.yml@v2
1515

16+
packaging:
17+
name: Packaging
18+
runs-on: ubuntu-24.04
19+
steps:
20+
- name: Cancel Previous Runs
21+
uses: styfle/cancel-workflow-action@0.13.0
22+
with:
23+
access_token: ${{ github.token }}
24+
25+
- name: Checkout
26+
uses: actions/checkout@v6.0.2
27+
with:
28+
submodules: true
29+
30+
- name: Set up Python 3.14
31+
uses: actions/setup-python@v6.1.0
32+
with:
33+
python-version: 3.14
34+
35+
- name: Install build deps
36+
run: |
37+
pip install uv
38+
uv pip install --system build twine validate-pyproject[all]
39+
40+
- name: Check package
41+
working-directory: python
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+
working-directory: python
49+
run: |
50+
python -m pip install dist/*.whl
51+
tskit --help
52+
53+
1654
test:
1755
name: Python
1856
runs-on: ${{ matrix.os }}
@@ -53,7 +91,7 @@ jobs:
5391
with:
5492
python-version: ${{ matrix.python }}
5593
version: "0.8.15"
56-
94+
5795
- name: Install dependencies
5896
working-directory: python
5997
run: |

0 commit comments

Comments
 (0)