Skip to content

fix: import from wrong module fixed #241

fix: import from wrong module fixed

fix: import from wrong module fixed #241

Workflow file for this run

name: Build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.8, 3.9, 3.11]
steps:
- uses: actions/checkout@v1
- name: Cache iverilog
uses: actions/cache@v1
env:
cache-name: cache-iverilog-new
with:
path: ./iverilog
key: ${{ runner.os }}-iverilog-v1${{ env.cache-name }}
- name: Cache verilator
uses: actions/cache@v1
env:
cache-name: cache-verilator-new
with:
path: ./verilator
key: ${{ runner.os }}-verilator-v2${{ env.cache-name }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install -r ci/requirements.txt
sudo apt-get install -y -qq flex bison gperf libreadline-dev libc6-dev
sudo apt install -y --no-install-recommends make g++ perl python3 autoconf libfl2 libfl-dev
sudo apt install -y zlib1g zlib1g-dev
#sudo bash ci/install_ghdl.sh
- name: Install uvm-python package
run: |
python -m pip install --user .
- name: Lint with flake8
run: |
python -m pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 ./src --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 ./src --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with make test and Icarus
run: |
sudo bash ci/install_iverilog.sh
export SIM=icarus
export PYTHONPATH=`pwd`
ln -s src/uvm uvm
make test
- name: Test with make test and Verilator
run: |
export VERILATOR_ROOT="$PWD/verilator"
export PATH="$VERILATOR_ROOT/bin:$PATH"
sudo bash ci/install_verilator.sh
export SIM=verilator
export PYTHONPATH=`pwd`
ln -s src/uvm uvm
make test
#- name: Test with make test and ghdl
# run: |
# export SIM=ghdl
# export PYTHONPATH=`pwd`
# ln -s src/uvm uvm
# make test TOPLEVEL_LANG=vhdl