-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (45 loc) · 1.23 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
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.11
- 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@v1
with:
shared-dirs: ./
renode-run: |
python -m venv .venv
source .venv/bin/activate
pip install .
protoplaster -t tests/basic.yml
devices: |
vivid
gpio 0 32
i2c 0x1C