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
65 changes: 65 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Python package

on:
push:
branches:
- 'master'
pull_request:
Comment on lines +4 to +7
Copy link

Copilot AI Feb 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The YAML indentation for the 'on' section is inconsistent. Line 4 has 'push:' indented with a space instead of proper YAML indentation (should be 2 spaces from 'on:'). Line 7 'pull_request:' has the same issue. This may cause the workflow to fail parsing.

Suggested change
push:
branches:
- 'master'
pull_request:
push:
branches:
- 'master'
pull_request:

Copilot uses AI. Check for mistakes.


jobs:
lint-coverage:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.13"]
steps:
- uses: actions/checkout@v6

- name: Setup uv
uses: astral-sh/setup-uv@v7

- name: Lint
run: uv run --python ${{ matrix.python-version }} --extra dev ruff check --output-format=github

- name: Generate coverage report
run: |
uv run --python ${{ matrix.python-version }} --extra dev \
pytest tests/ \
--cov=. \
--cov-branch \
--cov-report=term-missing \
--cov-report=html:cov_html \
--cov-report=markdown-append:$GITHUB_STEP_SUMMARY \
--verbose

- uses: actions/upload-artifact@v6
with:
name: html-coverage-artifact
path: ./cov_html/

test:
needs: lint-coverage
runs-on: ${{ matrix.os }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.python-version }}
cancel-in-progress: true
strategy:
fail-fast: true
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
os: [ubuntu-latest, windows-latest, macos-latest]
exclude:
- os: macos-latest
python-version: "3.9"
- os: macos-latest
python-version: "3.10"

steps:
- uses: actions/checkout@v6

- name: Setup uv
uses: astral-sh/setup-uv@v7

- name: Install and test
run: uv run --python ${{ matrix.python-version }} --extra dev pytest
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,9 @@ nosetests.xml

# Python build directory
api/python/build

.venv/
venv/
pyenv/
.idea/
build/
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ v0.3.3, 2017-03-07 -- Python 3 compatible
v0.3.4, 2018-04-05 -- Fix incorrect version being saved
v0.3.4.1, 2018-10-19 -- python3 compatible next for generator
v0.3.5, 2019-12-21 -- add validator and clean-up repo structure
v0.4.0, 2025-12-21 -- Replaces PyTables with H5Py, cleans repo structure, adds CI

3 changes: 0 additions & 3 deletions MANIFEST.in

This file was deleted.

Loading
Loading