From c0597bfad92ab1fb1e775e071624852c5286fc82 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Mon, 6 Sep 2021 16:31:58 +0200 Subject: [PATCH] py: test Python bindings in CI --- .github/workflows/rust.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 0bc94db..9edcdb8 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -37,6 +37,25 @@ jobs: command: test 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: runs-on: ubuntu-latest steps: