Skip to content
This repository was archived by the owner on Dec 17, 2025. It is now read-only.
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
40 changes: 40 additions & 0 deletions .github/workflows/CI_C_API_Python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Python C API CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.10"
- "3.11"
- "3.12"

steps:
- uses: actions/checkout@v4
- name: Install uv and set the python version
uses: astral-sh/setup-uv@v6
with:
# Install a specific version of uv.
version: "0.8.15"
python-version: ${{ matrix.python-version }}
- name: Enable caching
uses: astral-sh/setup-uv@v6
with:
enable-cache: true

- name: Run uv sync
run: uv sync
working-directory: python

- name: Run tests
# For example, using `pytest`
run: uv run pytest tests
working-directory: python
2 changes: 1 addition & 1 deletion python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This is a low-level binding for the [libsparseir](https://github.com/SpM-lab/lib

## Requirements

- Python >= 3.12
- Python >= 3.10
- CMake (for building the C++ library)
- C++11 compatible compiler
- numpy
Expand Down
Loading