Skip to content

Commit

Permalink
Add workflow to run python bindings tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ntjohnson1 committed Jul 4, 2024
1 parent f2dff8b commit 5623f3f
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/bindings.yml
Original file line number Diff line number Diff line change
@@ -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/

0 comments on commit 5623f3f

Please sign in to comment.