This repository has been archived by the owner on Nov 10, 2024. It is now read-only.
forked from TinyTapeout/tt09-verilog-template
-
Notifications
You must be signed in to change notification settings - Fork 8
66 lines (57 loc) · 1.7 KB
/
wokwi_test.yaml
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
61
62
63
64
65
66
name: wokwi_test
on: [push, workflow_dispatch]
jobs:
wokwi_test:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: recursive
- name: Checkout tt-support-tools repo
uses: actions/checkout@v4
with:
repository: TinyTapeout/tt-support-tools
path: tt
ref: tt09
- name: Install iverilog
shell: bash
run: sudo apt-get update && sudo apt-get install -y iverilog
# Set Python up and install cocotb
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install Python packages
shell: bash
run: |
pip install -r test/requirements.txt
pip install -r tt/requirements.txt
- name: Fetch the truth table
run: ./tt/tt_tool.py --create-user-config
- name: Check for truth table existence
id: check_files
uses: andstor/file-existence-action@v3
with:
files: "test/truthtable.md"
- name: Run tests
if: steps.check_files.outputs.files_exists == 'true'
run: |
cd test
make clean
make
# make will return success even if the test fails, so check for failure in the results.xml
! grep failure results.xml
- name: Test Summary
uses: test-summary/[email protected]
with:
paths: "test/results.xml"
if: always()
- name: upload vcd
if: success() || failure()
uses: actions/upload-artifact@v4
with:
name: test-vcd
path: |
test/*.vcd
test/results.xml