Skip to content
Merged
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
56 changes: 0 additions & 56 deletions .circleci/config.yml

This file was deleted.

70 changes: 70 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Tests

on:
pull_request:
merge_group:
push:
branches: [main, test]

jobs:
pre-commit:
name: Lint
runs-on: ubuntu-24.04
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.12.1
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v4.2.2
- uses: actions/setup-python@v5.4.0
with:
python-version: '3.12'
- uses: pre-commit/action@v3.0.1

test:
name: Python
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python: [ "3.10", 3.13 ]
os: [ macos-latest, ubuntu-24.04, windows-latest ]
defaults:
run:
shell: bash
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.12.1
with:
access_token: ${{ github.token }}

- name: Checkout
uses: actions/checkout@v4.2.2

- name: Install uv and set the python version
uses: astral-sh/setup-uv@v6
with:
python-version: ${{ matrix.python }}
version: "0.8.15"

- name: Install dependencies
run: |
uv venv
uv pip install -r pyproject.toml --extra test

- name: Run tests
run: |
NUMBA_DISABLE_JIT=1 uv run --no-sync python -m pytest -vv --cov=tsdate --cov-report=xml --cov-branch -n0 tests

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5.4.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
flags: python-tests
name: codecov-umbrella
verbose: true

- name: Build distribution
run: |
uv run --no-sync python -m build
8 changes: 4 additions & 4 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
with:
submodules: true

- name: Set up Python 3.10
- name: Set up Python
uses: actions/setup-python@v5.4.0
with:
python-version: "3.10"
Expand All @@ -42,7 +42,7 @@ jobs:
runs-on: macos-13
strategy:
matrix:
python: [3.8, 3.8, 3.9, "3.10", 3.11]
python: ["3.10", 3.13]
steps:
- name: Download wheels
uses: actions/download-artifact@v4.2.0
Expand All @@ -67,7 +67,7 @@ jobs:
runs-on: windows-latest
strategy:
matrix:
python: [3.8, 3.9, "3.10", 3.11]
python: ["3.10", 3.13]
wordsize: [64]
steps:
- name: Download wheels
Expand All @@ -93,7 +93,7 @@ jobs:
needs: ['manylinux']
strategy:
matrix:
python: [3.8, 3.9, "3.10", 3.11]
python: ["3.10", 3.13]
steps:
- name: Download wheels
uses: actions/download-artifact@v4.2.0
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## [0.2.4] - 2025-XX-XX

- Add support for Python 3.13, minimum version is now 3.10.


## [0.2.3] - 2025-06-07

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@ classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"tskit>=0.6.0",
Expand All @@ -46,6 +45,7 @@ text = "MIT"

[project.optional-dependencies]
test = [
"numcodecs>=0.6,<0.15.1", #Pinned due to https://github.com/zarr-developers/numcodecs/issues/733
"pytest==8.4.2",
"pytest-xdist==3.8.0",
"pytest-cov==6.3.0",
Expand Down
6 changes: 3 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ project_urls =
classifiers =
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: 3.13
Programming Language :: Python :: 3 :: Only
License :: OSI Approved :: MIT License
Development Status :: 3 - Alpha
Expand All @@ -44,7 +44,7 @@ platforms =

[options]
packages = tsdate
python_requires = >=3.8
python_requires = >=3.10
include_package_data = True
install_requires =
numpy
Expand Down
Loading