Skip to content

Commit

Permalink
Install pytorch on github CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
de-vri-es committed Jul 31, 2023
1 parent 9c0261b commit b875657
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ jobs:
name: Build and test
runs-on: ubuntu-latest
steps:
- name: Install pytorch
run: pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cpu

- name: Checkout code
uses: actions/checkout@master

Expand All @@ -25,15 +28,18 @@ jobs:
with:
command: build
args: --release --features full --color=always
env: LIBTORCH_USE_PYTORCH=1

- name: Clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --release --features full
env: LIBTORCH_USE_PYTORCH=1

- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --release --features full --color=always
env: LIBTORCH_USE_PYTORCH=1

0 comments on commit b875657

Please sign in to comment.