py: test Python bindings in CI
This commit is contained in:
parent
1155390973
commit
4f283fd173
|
@ -37,6 +37,25 @@ jobs:
|
||||||
command: test
|
command: test
|
||||||
args: -p instant-distance --all-features
|
args: -p instant-distance --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-distance-py --release
|
||||||
|
- name: Test Python bindings
|
||||||
|
run: |
|
||||||
|
sudo apt-get install -y wamerican
|
||||||
|
cp target/release/libinstant_distance.so instant-distance-py/test/instant_distance.so
|
||||||
|
PYTHONPATH=instant-distance-py/test/ python3 -m test
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
Loading…
Reference in New Issue