-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 1002 Bytes
/
test.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: Test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install etcd
run: |
wget https://github.com/etcd-io/etcd/releases/download/v3.4.10/etcd-v3.4.10-linux-amd64.tar.gz
tar -xzf etcd-v3.4.10-linux-amd64.tar.gz
mv etcd-v3.4.10-linux-amd64/etcd* /usr/local/bin/
- name: Set up Python as Runtime
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Set up Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Install protobuf compiler
run: |
sudo apt install -y protobuf-compiler
- name: Install dependencies and build the package
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m maturin build
python -m pip install .
- name: Test
run: |
python -m pytest