Skip to content

Install dependencies necessary to run interconnect test in github wor… #71

Install dependencies necessary to run interconnect test in github wor…

Install dependencies necessary to run interconnect test in github wor… #71

Workflow file for this run

name: Pipeline
on: [pull_request, push, workflow_dispatch]
jobs:
Tests:
runs-on: ubuntu-latest
container: verilator/verilator:v5.020
name: "Test Python ${{ matrix.python-version }}"
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10"]
env:
DEBIAN_FRONTEND: noninteractive
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dev requirements
run: |
apt-get update -qq
apt-get install -y \
antlr4 \
libantlr4-runtime-dev \
python3-dev \
yosys \
gcc-riscv64-unknown-elf \
meson \
ninja-build \
bsdextrautils
python3 -m pip install --upgrade pip wheel setuptools
python3 -m pip install -r requirements.dev.txt
python3 -m pip install git+https://github.com/antmicro/tuttest
- name: Run lint checks
run: nox -s isort black flake8
- name: Build
run: tuttest README.md | bash -
- name: Run pytest with nox
run: nox -s tests
Examples:
runs-on: ubuntu-latest
name: 'Example ${{ matrix.example }}'
strategy:
fail-fast: false
matrix:
example:
- HDMI
- INOUT
- PWM
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install tuttest and fpga-topwrap
run: |
python3 -m pip install git+https://github.com/antmicro/tuttest
tuttest README.md | bash -
- name: Generate sources for example HDMI setup
if: matrix.example == 'HDMI'
run: |
cd examples/hdmi
tuttest README.md generate | bash -
cd -
- name: Generate sources for example inout setup
if: matrix.example == 'INOUT'
run: |
cd examples/inout
tuttest README.md generate | bash -
cd -
- name: Generate sources for and build example PWM setup
if: matrix.example == 'PWM'
run: |
cd examples/pwm
tuttest README.md generate | bash -
cd -
- uses: actions/upload-artifact@v3
if: matrix.example == 'PWM'
with:
name: top.bit
path: top.bit