From b774d8181b1aa7e9fee041649d09bea31360c28b Mon Sep 17 00:00:00 2001 From: nathaniel Date: Wed, 27 Jul 2022 12:08:00 -0400 Subject: [PATCH] ci: setup ci --- .github/workflows/test-burn-tensor.yml | 35 ++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/test-burn-tensor.yml diff --git a/.github/workflows/test-burn-tensor.yml b/.github/workflows/test-burn-tensor.yml new file mode 100644 index 00000000000..072047b6272 --- /dev/null +++ b/.github/workflows/test-burn-tensor.yml @@ -0,0 +1,35 @@ +name: test + +on: [push] + +jobs: + publish: + name: test burn tensor + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v2 + + - name: install rust stable + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + + - name: check format + run: | + cd burn-tensor + cargo fmt --check --all + + - name: check tests backend ndarray + run: | + cd burn-tensor + cargo test --no-default-features --features ndarray + + - name: check tests backend tch + run: + cd burn-tensor + cargo test --no-default-features --features tch + +