-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (37 loc) · 1.27 KB
/
contourwall.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
43
44
45
46
47
48
49
name: ContourWall Pipeline
on:
push:
branches:
- '**' # Run on all branches
jobs:
cargo_check_build_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2 # Checkout code
with:
working-directory: ./lib/cw-core # Set working directory to ./lib/cw-core
- uses: actions-rs/toolchain@v1 # Install Rust
with:
toolchain: stable
- name: Install libudev-dev dependency
run: sudo apt-get install libudev-dev
- name: Cargo Check
working-directory: ./lib/cw-core/
run: cargo check --release
- name: Cargo Build
working-directory: ./lib/cw-core/
run: cargo build --release
- name: Cargo Test
working-directory: ./lib/cw-core/
run: cargo test --release util
python_type_checking:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2 # Checkout code
with:
working-directory: ./lib/cw-core # Set working directory to ./lib/cw-core
- name: Install python wrapper requirements
run: python3 -m pip install -r ./lib/wrappers/python/requirements.txt
- name: Type Safety Check (Python Wrapper)
working-directory: ./lib/wrappers/python/
run: python3 -m mypy contourwall.py --disallow-untyped-defs --allow-redefinition