Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 39 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,44 @@ jobs:
name: Lint
uses: tskit-dev/.github/.github/workflows/lint.yml@v2

packaging:
name: Packaging
runs-on: ubuntu-24.04
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.13.0
with:
access_token: ${{ github.token }}

- name: Checkout
uses: actions/checkout@v6.0.2
with:
submodules: true

- name: Set up Python 3.14
uses: actions/setup-python@v6.1.0
with:
python-version: 3.14

- name: Install build deps
run: |
pip install uv
uv pip install --system build twine validate-pyproject[all]

- name: Check package
working-directory: python
run: |
validate-pyproject pyproject.toml
python -m build
python -m twine check --strict dist/*

- name: Install and run CLI
working-directory: python
run: |
python -m pip install dist/*.whl
tskit --help


test:
name: Python
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -53,7 +91,7 @@ jobs:
with:
python-version: ${{ matrix.python }}
version: "0.8.15"

- name: Install dependencies
working-directory: python
run: |
Expand Down
3 changes: 1 addition & 2 deletions python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ authors = [
]
description = "The tree sequence toolkit."
readme = "README.rst"
license = {text = "MIT"}
license = "MIT"
classifiers = [
"Programming Language :: C",
"Programming Language :: Python",
Expand All @@ -23,7 +23,6 @@ classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Other Environment",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
Expand Down