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

on:
push:
pull_request:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install package
run: python -m pip install -v ".[test]"
- name: Test import
run: python -c "import bioimage_cpp"
- name: Run tests
run: pytest -q
22 changes: 22 additions & 0 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: wheels

on:
workflow_dispatch:
release:
types: [published]

jobs:
wheels:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-13, macos-14, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: pypa/cibuildwheel@v2.18
env:
CIBW_BUILD: "cp310-* cp311-* cp312-*"
CIBW_TEST_REQUIRES: pytest
CIBW_TEST_COMMAND: "python -c \"import bioimage_cpp\" && pytest {project}/tests"
26 changes: 26 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Python caches
__pycache__/
*.py[cod]
*$py.class

# Python packaging/build outputs
*.egg-info/
build/
dist/
wheelhouse/

# scikit-build-core / CMake outputs
_skbuild/
CMakeFiles/
CMakeCache.txt
cmake_install.cmake
compile_commands.json

# Test and coverage artifacts
.pytest_cache/
.coverage
htmlcov/

# Local virtual environments
.venv/
venv/
Loading
Loading