Skip to content

Commit 7413cb5

Browse files
jeromekelleherbenjeffery
authored andcommitted
Switch to reusable workflow
Also remove package tests from circlCI
1 parent 4ad5030 commit 7413cb5

2 files changed

Lines changed: 7 additions & 55 deletions

File tree

.circleci/config.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -180,24 +180,6 @@ jobs:
180180
paths:
181181
- "/home/circleci/.local"
182182
- compile_and_test
183-
- run:
184-
name: Install dependencies for wheel test
185-
command: |
186-
ARGO_NET_GIT_FETCH_WITH_CLI=1 pip install twine --user
187-
# Remove tskit installed by msprime
188-
pip uninstall tskit -y
189-
- run:
190-
name: Build Python package
191-
command: |
192-
cd python
193-
rm -fR build
194-
python -m pip install build
195-
python -m venv venv
196-
python -m build --sdist
197-
python -m twine check dist/*.tar.gz
198-
python -m build --wheel
199-
pip install dist/*.whl
200-
tskit --help
201183

202184
build-32:
203185
docker:

.github/workflows/tests.yml

Lines changed: 7 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -8,48 +8,18 @@ on:
88

99
env:
1010
FORCE_COLOR: 1
11+
1112
jobs:
1213
pre-commit:
1314
name: Lint
14-
uses: tskit-dev/.github/.github/workflows/lint.yml@v2
15+
uses: tskit-dev/.github/.github/workflows/lint.yml@v4
1516

1617
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-
18+
name: Python packaging
19+
uses: tskit-dev/.github/.github/workflows/python-packaging.yml@v4
20+
with:
21+
working-directory: python
22+
cli-test-cmd: tskit --help
5323

5424
test:
5525
name: Python

0 commit comments

Comments
 (0)