Skip to content

Commit 930148c

Browse files
Implement structure and first functionality
1 parent 9d95e8b commit 930148c

17 files changed

Lines changed: 998 additions & 1 deletion

File tree

.github/workflows/tests.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-python@v5
13+
with:
14+
python-version: "3.11"
15+
- name: Install package
16+
run: python -m pip install -v ".[test]"
17+
- name: Test import
18+
run: python -c "import bioimage_cpp"
19+
- name: Run tests
20+
run: pytest -q

.github/workflows/wheels.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: wheels
2+
3+
on:
4+
workflow_dispatch:
5+
release:
6+
types: [published]
7+
8+
jobs:
9+
wheels:
10+
name: ${{ matrix.os }}
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
os: [ubuntu-latest, macos-13, macos-14, windows-latest]
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: pypa/cibuildwheel@v2.18
19+
env:
20+
CIBW_BUILD: "cp310-* cp311-* cp312-*"
21+
CIBW_TEST_REQUIRES: pytest
22+
CIBW_TEST_COMMAND: "python -c \"import bioimage_cpp\" && pytest {project}/tests"

.gitignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Python caches
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# Python packaging/build outputs
7+
*.egg-info/
8+
build/
9+
dist/
10+
wheelhouse/
11+
12+
# scikit-build-core / CMake outputs
13+
_skbuild/
14+
CMakeFiles/
15+
CMakeCache.txt
16+
cmake_install.cmake
17+
compile_commands.json
18+
19+
# Test and coverage artifacts
20+
.pytest_cache/
21+
.coverage
22+
htmlcov/
23+
24+
# Local virtual environments
25+
.venv/
26+
venv/

0 commit comments

Comments
 (0)