-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathnoxfile.py
47 lines (42 loc) · 1.21 KB
/
noxfile.py
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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# File : noxfile.py
# License : MIT license <Check LICENSE>
# Author : Anderson I. da Silva (aignacio) <[email protected]>
# Date : 08.10.2023
# Last Modified Date: 24.10.2024
import nox
@nox.session(python=["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"], reuse_venv=True)
def run(session):
session.env["DUT"] = "ahb_template"
session.env["SIM"] = "icarus"
# session.env["COCOTB_LOG_LEVEL"] = "debug"
# session.env['SIM'] = "verilator"
session.env["TIMEPREC"] = "1ps"
session.env["TIMEUNIT"] = "1ns"
session.install(
"pytest",
"pytest-xdist",
"pytest-sugar",
"pytest-cov",
"pytest-split",
"cocotb-bus==0.2.1",
"cocotb-test==0.2.4",
"cocotb>=1.8.0"
)
session.install("-e", ".")
session.run(
"pytest",
"--cov=cocotbext",
"--cov-branch",
"--cov-report=xml",
# "-rf",
"-rP",
"-n",
"auto",
*session.posargs
)
@nox.session(python=["3.9", "3.10", "3.11", "3.12"], reuse_venv=True)
def lint(session):
session.install("flake8")
session.run("flake8")