forked from coreylowman/dfdx
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.07 KB
/
cargo-test.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
42
on:
- push
- pull_request
jobs:
cargo-test:
name: cargo-test-nightly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- name: cargo build
uses: actions-rs/cargo@v1
with:
command: test
args: --no-run --features nightly,safetensors,numpy
- name: test CPU f32
uses: actions-rs/cargo@v1
with:
command: test
args: --tests --features nightly,safetensors,numpy
- name: test CPU f64
uses: actions-rs/cargo@v1
with:
command: test
args: --tests --features nightly,test-f64,safetensors,numpy
- name: doc tests
uses: actions-rs/cargo@v1
with:
command: test
args: --doc --features nightly,safetensors,numpy
- name: example tests
uses: actions-rs/cargo@v1
with:
command: test
args: --examples --features nightly,safetensors,numpy