Skip to content

Commit 7f7eb24

Browse files
committed
MAINT: Try adding github action for CI (draft)
1 parent 224358e commit 7f7eb24

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
on:
2+
push:
3+
branches: [ master ]
4+
pull_request:
5+
branches: [ master ]
6+
7+
8+
name: Continuous integration
9+
10+
11+
env:
12+
CARGO_TERM_COLOR: always
13+
HOST: x86_64-unknown-linux-gnu
14+
FEATURES: "test docs"
15+
16+
jobs:
17+
ci:
18+
runs-on: ubuntu-latest
19+
strategy:
20+
matrix:
21+
rust:
22+
- stable
23+
- beta
24+
- nightly
25+
- 1.42.0 # MSRV
26+
27+
steps:
28+
- uses: actions/checkout@v2
29+
- uses: actions-rs/toolchain@v1
30+
with:
31+
profile: minimal
32+
toolchain: ${{ matrix.rust }}
33+
override: true
34+
components: rustfmt, clippy
35+
- name: Install openblas
36+
run: sudo apt-get install libopenblas-dev gfortran
37+
- run: ./scripts/all-tests.sh "$FEATURES" ${{ matrix.rust }}
38+

0 commit comments

Comments
 (0)