-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (35 loc) · 1 KB
/
run-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Run tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-18.04, ubuntu-20.04, macos-10.15, macos-11.0, windows-2019 ]
steps:
- uses: actions/checkout@v2
- name: Build
shell: bash
run: |
if [[ "$RUNNER_OS" == "Windows" ]]; then
export LIBCLANG_PATH="C:\Program Files\LLVM\bin"
choco install -y llvm
fi
cargo build --verbose
- name: Run tests
shell: bash
env:
CLARIFAI_API_KEY: ${{ secrets.CLARIFAI_API_KEY }}
CLARIFAI_GRPC_BASE: ${{ secrets.CLARIFAI_GRPC_BASE }}
run: |
if [[ "$RUNNER_OS" == "macOS" || "$RUNNER_OS" == "Windows" ]]; then
curl -Lo roots.pem https://raw.githubusercontent.com/grpc/grpc/master/etc/roots.pem
export GRPC_DEFAULT_SSL_ROOTS_FILE_PATH="$PWD/roots.pem"
fi
cargo test --verbose