From c14e07e8f79a0732ce4dbe9ef148e2f1845f86da Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Thu, 18 Mar 2021 21:05:59 +0100 Subject: [PATCH] py: implement CI --- .github/workflows/rust.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 0bc94db..67b6b75 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -28,10 +28,20 @@ jobs: profile: minimal toolchain: ${{ matrix.rust }} override: true + + - name: Set up Python 3.9 + uses: actions/setup-python@v2 + with: + python-version: 3.9 + architecture: x64 + - if: matrix.platform.os == 'ubuntu-latest' + name: Prepare LD_LIBRARY_PATH (Ubuntu only) + run: echo LD_LIBRARY_PATH=${pythonLocation}/lib >> $GITHUB_ENV + - uses: actions-rs/cargo@v1 with: command: build - args: -p instant-distance --all-features --all-targets + args: --all-features --all-targets - uses: actions-rs/cargo@v1 with: command: test