-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python tests 2: Streaming boogaloo #12
Merged
Merged
Changes from 37 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
d6d47cf
bindings created
aliddell e85d185
pip install . working
aliddell 2b648c1
python -m build working (on Windows anyway)
aliddell 2ef675c
get it building on linux
aliddell 9a44c42
Remove test stub (save for the next PR)
aliddell 3978d55
Undo an overzealous rename
aliddell 2a4c0a8
Add Python wheel build job
aliddell 7ed144e
Prepare for Python bindings
aliddell 68d3b0b
Merge branch 'python-bindings-prep' into python-bindings
aliddell c160d7c
Don't export the enum values into the module base namespace.
aliddell 7e51977
(wip) some basic tests
aliddell 8c76e2d
Revert CMake minimum version and use cmake_policy. Using builtin `BUI…
aliddell 60a0bd5
Update build.yml
aliddell 9c5c6bf
Update release.yml
aliddell 1a9d1be
Merge branch 'python-bindings-prep' into python-bindings
aliddell 2dc2fa6
Merge remote-tracking branch 'upstream/python-bindings-prep' into pyt…
aliddell f3b1e84
Merge branch 'python-bindings' into python-tests
aliddell 40b14ad
Merge remote-tracking branch 'upstream/main' into python-bindings
aliddell 50f889d
Merge remote-tracking branch 'upstream/python-bindings' into python-t…
aliddell 8faabe5
some simple tests
aliddell 7e97dd7
add python tests to CI
aliddell 71aacd8
(wip): first stream test (crash!)
aliddell e219b0b
Merge remote-tracking branch 'upstream/main' into python-tests
aliddell f385549
Merge branch 'python-tests' into python-tests-2
aliddell 4deaecd
Remove deprecated workflows
aliddell 30a844c
A rectification of names
aliddell 70f4f47
whitespace
aliddell b68a634
Fix double free error
aliddell 28b28c6
Slightly improve debug output.
aliddell 6aabdd3
Add some more streaming tests.
aliddell 30f8ad2
Merge remote-tracking branch 'upstream/main' into python-tests-2
aliddell 2969c6a
concurrency?
aliddell 8e8aba8
Explicit nullopt
aliddell 946c633
Merge remote-tracking branch 'upstream/main' into python-tests-2
aliddell 08e95ed
Get it working ok on Windows
aliddell 597e49c
remove stub
aliddell eee52c1
Use PROJECT_SOURCE_DIR instead of CMAKE_SOURCE_DIR
aliddell d6af9b6
Respond to PR comments
aliddell File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,12 +4,10 @@ on: | |
push: | ||
branches: | ||
- "main" | ||
pull_request: # TODO (aliddell): remove this | ||
branches: | ||
- "main" | ||
|
||
jobs: | ||
windows-and-linux-build: | ||
name: Build on ${{ matrix.platform }} with ${{ matrix.build_type }} configuration | ||
strategy: | ||
matrix: | ||
build_type: | ||
|
@@ -29,12 +27,11 @@ jobs: | |
permissions: | ||
actions: write | ||
|
||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
@@ -58,7 +55,7 @@ jobs: | |
cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}} | ||
cpack --config ${{github.workspace}}/build/CPackConfig.cmake -C ${{matrix.build_type}} -G ZIP | ||
|
||
- uses: actions/upload-artifact@v3 | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{matrix.platform}} ${{matrix.build_type}} binaries | ||
path: ${{github.workspace}}/*.zip | ||
|
@@ -75,12 +72,11 @@ jobs: | |
permissions: | ||
actions: write | ||
|
||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
@@ -114,7 +110,7 @@ jobs: | |
run: | | ||
cpack --config ${{github.workspace}}/build/CPackConfig.cmake -C ${{matrix.build_type}} -G ZIP | ||
|
||
- uses: actions/upload-artifact@v3 | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: macos-latest ${{matrix.build_type}} binaries | ||
path: ${{github.workspace}}/*.zip | ||
|
@@ -132,12 +128,11 @@ jobs: | |
permissions: | ||
actions: write | ||
|
||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
@@ -163,6 +158,7 @@ jobs: | |
run: python -m build | ||
|
||
- name: Upload wheel | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{matrix.platform}} wheel | ||
path: ${{github.workspace}}/dist/*.whl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ env: | |
|
||
jobs: | ||
windows-and-linux-build: | ||
name: Build on ${{ matrix.platform }} | ||
strategy: | ||
matrix: | ||
platform: | ||
|
@@ -27,12 +28,11 @@ jobs: | |
permissions: | ||
actions: write | ||
|
||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
@@ -61,23 +61,23 @@ jobs: | |
cmake --build ${{github.workspace}}/pack --config Release | ||
cpack --config ${{github.workspace}}/pack/CPackConfig.cmake -C Release -G ZIP | ||
|
||
- uses: actions/upload-artifact@v3 | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{matrix.platform}} binaries | ||
path: ${{github.workspace}}/*.zip | ||
|
||
mac-build: | ||
name: Build on macos-latest | ||
runs-on: "macos-latest" | ||
|
||
permissions: | ||
actions: write | ||
|
||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
@@ -115,7 +115,7 @@ jobs: | |
run: | | ||
cpack --config ${{github.workspace}}/build/CPackConfig.cmake -C Release -G ZIP | ||
|
||
- uses: actions/upload-artifact@v3 | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: macos-latest binaries | ||
path: ${{github.workspace}}/*.zip | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,10 @@ on: | |
env: | ||
BUILD_TYPE: Release | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | ||
|
||
jobs: | ||
test: | ||
name: Test on ${{ matrix.platform }} | ||
|
@@ -34,11 +38,6 @@ jobs: | |
actions: write | ||
|
||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
@@ -78,11 +77,6 @@ jobs: | |
MINIO_SECRET_KEY: 12345678 | ||
|
||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
@@ -135,7 +129,7 @@ jobs: | |
run: ctest -C ${{env.BUILD_TYPE}} -L s3 --output-on-failure | ||
|
||
test_python: | ||
name: Test on ${{ matrix.platform }} | ||
name: Test Python on ${{ matrix.platform }} | ||
runs-on: ${{ matrix.platform }} | ||
timeout-minutes: 20 | ||
strategy: | ||
|
@@ -147,11 +141,6 @@ jobs: | |
- "macos-latest" | ||
|
||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
@@ -175,8 +164,7 @@ jobs: | |
run: python -m pip install -U pip "pybind11[global]" cmake build numpy pytest | ||
|
||
- name: Build and install Python bindings | ||
run: python -m pip install . | ||
run: python -m pip install ".[testing]" | ||
|
||
- name: Run tests | ||
run: python -m pytest -v | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
import json | ||
from pathlib import Path | ||
|
||
import numpy as np | ||
import pytest | ||
|
||
import acquire_zarr | ||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just want to point out that Ubuntu 24.04 uses v3.12. It isn't critical for me, as I'm using C++, but wanted you to know in case there was a user-base that was interested.