forked from TinyTapeout/ttsky25a-tinyQV
-
Notifications
You must be signed in to change notification settings - Fork 0
91 lines (85 loc) · 2.17 KB
/
Copy pathtest.yaml
File metadata and controls
91 lines (85 loc) · 2.17 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: test
on: [push, workflow_dispatch, pull_request]
jobs:
test:
strategy:
matrix:
target:
- core
- prog
- peri_num_2
- peri_num_3
- peri_num_4
- peri_num_5
- peri_num_6
- peri_num_7
- peri_num_8
- peri_num_9
- peri_num_10
- peri_num_11
- peri_num_12
- peri_num_13
- peri_num_14
- peri_num_15
- peri_num_16
- peri_num_17
- peri_num_18
- peri_num_19
- peri_num_20
- peri_num_21
- peri_num_22
- peri_num_23
- peri_num_24
- peri_num_25
- peri_num_26
- peri_num_27
- peri_num_28
- peri_num_29
- peri_num_30
- peri_num_31
- peri_num_32
- peri_num_33
- peri_num_34
- peri_num_35
- peri_num_36
- peri_num_37
- peri_num_38
- peri_num_39
fail-fast: false
runs-on: ubuntu-24.04
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: recursive
- 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
- name: Run tests
run: |
cd test
make clean
make ${{ matrix.target }}
# 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/action@v2.3
with:
paths: "test/results.xml"
if: always()
- name: upload vcd
if: success() || failure()
uses: actions/upload-artifact@v4
with:
name: test-vcd-${{ matrix.target }}
path: |
test/*.fst
test/results.xml