-
Notifications
You must be signed in to change notification settings - Fork 7
60 lines (45 loc) · 1.27 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Test
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: '0 0 * * 5'
env:
CI: true
DOCKER_BUILDKIT: 1
jobs:
pytest:
runs-on: ubuntu-latest
steps:
- name: '🧰 Checkout'
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- name: '🛳️ Build osvb'
run: docker build -t osvb -f .github/Dockerfile .
- name: '🚧 Run tests'
run: docker run --rm -v $(pwd):/src -w /src -e CI osvb pytest -v -s -ra test.py --color=yes
sigrok:
runs-on: ubuntu-latest
steps:
- name: '🧰 Checkout'
uses: actions/checkout@v3
- name: '🚧 Generate waveforms'
run: |
cd sigrok/resolution
for img in buster-mcode buster-llvm-7; do
docker pull ghdl/ghdl:"$img"
docker run --rm -tv $(pwd):/src -e CI ghdl/ghdl:"$img" /src/run.sh
done
cd ../hierarchy
docker run --rm -tv $(pwd):/src -e CI ghdl/ghdl:buster-mcode /src/run.sh
- name: '🛳️ Build docker image with libsigork and sigrok-cli'
run: |
cd sigrok
docker build -t umarcor/sigrok .
- name: '🚧 Run sigrok-cli'
run: |
cd sigrok
docker run --rm -tv $(pwd):/src -e CI umarcor/sigrok /src/test.sh