forked from pyodide/sphinx-js-fork
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnoxfile.py
25 lines (19 loc) · 874 Bytes
/
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
from pathlib import Path
import nox
from nox.sessions import Session
@nox.session(python=["3.10", "3.11"])
def tests(session: Session) -> None:
session.install("-r", "requirements_dev.txt")
session.run("npm", "i", "--no-save", "[email protected]", "[email protected]", external=True)
session.run("pytest", "--junitxml=test-results.xml")
@nox.session(python=["3.10", "3.11"])
@nox.parametrize("typedoc", ["0.20", "0.21", "0.22", "0.23", "0.24", "0.25"])
def test_typedoc(session: Session, typedoc: str) -> None:
session.install("-r", "requirements_dev.txt")
venvroot = Path(session.bin).parent
(venvroot / "node_modules").mkdir()
with session.chdir(venvroot):
session.run(
"npm", "i", "--no-save", "[email protected]", f"typedoc@{typedoc}", external=True
)
session.run("pytest", "--junitxml=test-results.xml", "-k", "not js")