- name: Run tests
run: |
export NMIGEN_USE_YOSYS=builtin YOSYS=yowasp-yosys SBY=yowasp-sby SMTBMC=yowasp-yosys-smtbmc
+ export PYTHONWARNINGS=error
python -m coverage run -m unittest
codecov
document:
script=script,
rtlil=rtlil.convert(Fragment.get(spec, platform="formal"))
)
- with subprocess.Popen([require_tool("sby"), "-f", "-d", spec_name], cwd=spec_dir,
- universal_newlines=True,
- stdin=subprocess.PIPE, stdout=subprocess.PIPE) as proc:
+ with subprocess.Popen(
+ [require_tool("sby"), "-f", "-d", spec_name],
+ cwd=spec_dir, env={**os.environ, "PYTHONWARNINGS":"ignore"},
+ universal_newlines=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE) as proc:
stdout, stderr = proc.communicate(config)
if proc.returncode != 0:
self.fail("Formal verification failed:\n" + stdout)