-
Notifications
You must be signed in to change notification settings - Fork 7
59 lines (49 loc) · 1.26 KB
/
ci.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
50
51
52
53
54
55
56
57
58
59
name: ci
on:
pull_request:
branches:
- master
- prerelease
push:
branches:
- master
jobs:
rust:
runs-on: ubuntu-latest
container: ubuntu
steps:
- uses: actions/checkout@v2
- name: Install tools
run: |
apt-get update
apt-get install -y curl build-essential pkg-config libssl-dev git
env:
DEBIAN_FRONTEND: noninteractive
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt
default: true
- name: Install python
uses: actions/setup-python@v2
with:
python-version: 3.8
architecture: x64
- name: Check which Python we use
run: |
echo $(which python)
ls $(dirname $(which python))
- name: Install other dependent tools
run: |
python -m pip install poetry
cargo install just
- name: Install python dependencies
run: just bootstrap-python
- name: Is the code formatted?
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all --manifest-path native/Cargo.toml -- --check -q
- name: Run tests
run: just test