-
Notifications
You must be signed in to change notification settings - Fork 7
52 lines (41 loc) · 1.07 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
name: ci
on:
pull_request:
branches:
- master
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
- uses: dtolnay/[email protected]
- 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?
run: |
cargo fmt --all --manifest-path native/Cargo.toml -- --check -q
- name: Run tests
run: just test