-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (35 loc) · 1.13 KB
/
run-weekly-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: 🧪
on:
schedule:
- cron: "0 7 * * 1"
jobs:
run-tests-rust:
name: Run Rust tests
runs-on: ubuntu-latest
strategy:
matrix:
rust-version: ["stable", "beta", "nightly"]
steps:
- name: Set up Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.rust-version }}
components: rustfmt
- uses: actions/checkout@v3
- name: Install LAPACK & OpenBLAS
run:
sudo apt-get install libopenblas-dev liblapack-dev
- name: Build rust library
run: cargo build --features "strict"
- name: Build rust library in release mode
run: cargo build --release --features "strict"
- name: Run unit tests
run: cargo test --features "strict"
- name: Run unit tests in release mode
run: cargo test --release --features "strict"
- name: Run tests
run: cargo test --examples --release --features "strict"
- name: Test benchmarks build
run: cargo bench --no-run --features "strict"
- name: Build docs
run: cargo doc --features "strict" --no-deps