Skip to content

Commit

Permalink
fix(ci): use same Rust version for Python tests as for building the p…
Browse files Browse the repository at this point in the history
…ackage
  • Loading branch information
pixelspark committed Mar 5, 2023
1 parent 98de578 commit 8e24aa0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/check-onnx-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches: [master, staging]
pull_request:

env:
RUST_BACKTRACE: 1
RUST_VERSION: 1.66

jobs:
build_manylinux:
name: Build and Test ONNX Backend
Expand All @@ -22,18 +26,16 @@ jobs:
sudo apt install -y libegl1-mesa libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.RUST_VERSION }}
profile: minimal
toolchain: stable
override: true
- name: test
run: |
cd wonnx-py
rustup override set nightly-2022-01-01
export RUSTFLAGS='-C target-feature=+fxsr,+sse,+sse2,+sse3,+ssse3,+sse4.1,+popcnt'
python3 -m venv .env
source .env/bin/activate
pip install --upgrade pip
pip install maturin
pip install -r requirements.txt
maturin develop
WGPU_BACKEND=vulkan pytest tests/test_onnx_backend.py
WGPU_BACKEND=vulkan pytest tests/test_onnx_backend.py

0 comments on commit 8e24aa0

Please sign in to comment.