forked from maia-sdr/maia-sdr
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (41 loc) · 1.06 KB
/
maia-hdl.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
name: 'maia-hdl'
on: [push, pull_request]
jobs:
python-formatting:
name: Check Python Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install pycodestyle with pip
run: pip install pycodestyle
- name: Run pycodestyle
run: |
pycodestyle --exclude maia-hdl/adi-hdl/ maia-hdl/
python-tests:
name: Python Tests
runs-on: ubuntu-latest
container:
image: ghcr.io/maia-sdr/maia-sdr-devel:latest
options: --user root
steps:
- uses: actions/checkout@v3
- name: Run Python unittest
run: |
cd maia-hdl
python3 -m unittest
cocotb-tests:
name: cocotb Tests
runs-on: ubuntu-latest
container:
image: ghcr.io/maia-sdr/maia-sdr-devel:latest
options: --user root
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Run cocotb Makefile
run: |
cd maia-hdl/test_cocotb
export PATH=$PATH:/opt/oss-cad-suite/bin
make
test -z "$(grep --include=results.xml -r -e failure .)"