From 5623f3f49a1a5d2edab1830fc0bcbdfb8b9202b7 Mon Sep 17 00:00:00 2001 From: Nick Johnson <24689722+ntjohnson1@users.noreply.github.com> Date: Thu, 4 Jul 2024 10:10:52 -0400 Subject: [PATCH] Add workflow to run python bindings tests --- .github/workflows/bindings.yml | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/bindings.yml diff --git a/.github/workflows/bindings.yml b/.github/workflows/bindings.yml new file mode 100644 index 0000000..82fe93a --- /dev/null +++ b/.github/workflows/bindings.yml @@ -0,0 +1,36 @@ +name: Python Bindings + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + RUST_BACKTRACE: 1 + +jobs: + coverage: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: "3.10" + - uses: actions/cache@v3 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + + - name: bindings + run: | + cd py-tensor + pip install .[dev] + pytest tests/