Add Python test job
This commit is contained in:
parent
b92830249f
commit
73817b7e4d
|
@ -35,6 +35,24 @@ jobs:
|
||||||
command: test
|
command: test
|
||||||
args: -p instant-segment --all-features
|
args: -p instant-segment --all-features
|
||||||
|
|
||||||
|
test-python:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
profile: minimal
|
||||||
|
toolchain: stable
|
||||||
|
override: true
|
||||||
|
- uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: build
|
||||||
|
args: -p instant-segment-py --release
|
||||||
|
- name: Test Python bindings
|
||||||
|
run: |
|
||||||
|
cp target/release/libinstant_segment.so instant-segment-py/test/instant_segment.so
|
||||||
|
PYTHONPATH=instant-segment-py/test/ python3 -m test
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
Loading…
Reference in New Issue