-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnoxfile.py
45 lines (41 loc) · 1.1 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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# File : noxfile.py
# License : MIT license <Check LICENSE>
# Author : Anderson I. da Silva (aignacio) <[email protected]>
# Date : 25.10.2024
# Last Modified Date: 29.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["TIMEUNIT"] = "1ns"
session.env["TIMEPREC"] = "1ps"
session.install(
"pytest",
"pytest-xdist",
"pytest-sugar",
"pytest-cov",
"pytest-split",
"cocotb>=1.8.0",
"cocotbext-ahb>=0.4.4",
)
session.install(".")
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")