-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (43 loc) · 1.22 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
name: "General CI checks"
on:
push:
pull_request:
workflow_dispatch:
jobs:
installation-test:
name: "Test if installation works"
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install protoplaster with pip
run: |
pip install .
- name: See that it can be run
run: |
cd /tmp/
protoplaster --help
test-in-renode:
name: Test in Renode runner
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install packages
if: ${{ env.ACT }}
run: |
sudo apt update -qq && sudo DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends \
python3-pip telnet iptables iproute2 bc cpio rsync
- name: Run scripts in Renode
uses: antmicro/renode-linux-runner-action@v0
with:
shared-dir: ./
renode-run: |
./protoplaster/protoplaster -t tests/basic.yml
devices: |
vivid
gpio 0 32
i2c 0x1C
python-packages: git+https://github.com/antmicro/protoplaster.git