Skip to content

Commit 64d2db0

Browse files
committed
feat: workflow for cocotb unit test
1 parent b448476 commit 64d2db0

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: cocotb_unit_test
2+
on: [push, workflow_dispatch]
3+
jobs:
4+
test:
5+
runs-on: ubuntu-24.04
6+
steps:
7+
- name: Checkout repository
8+
uses: actions/checkout@v4
9+
with:
10+
submodules: recursive
11+
12+
- name: Install iverilog
13+
shell: bash
14+
run: sudo apt-get update && sudo apt-get install -y iverilog
15+
16+
- name: Setup python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: '3.10'
20+
21+
- name: Install cocotb
22+
run: pip install cocotb
23+
24+
- name: Run cocotb test
25+
run: |
26+
cd ex01_and_gate/test
27+
make
28+
! grep failure results.xml

0 commit comments

Comments
 (0)