forked from pyodide/sphinx-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnoxfile.py
More file actions
30 lines (24 loc) · 974 Bytes
/
noxfile.py
File metadata and controls
30 lines (24 loc) · 974 Bytes
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
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")
venvroot = Path(session.bin).parent
(venvroot / "node_modules").mkdir()
with session.chdir(venvroot):
session.run(
"npm", "i", "--no-save", "jsdoc@4.0.0", "typedoc@0.25", external=True
)
session.run("pytest", "--junitxml=test-results.xml")
@nox.session(python=["3.11"])
@nox.parametrize("typedoc", ["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", "jsdoc@4.0.0", f"typedoc@{typedoc}", external=True
)
session.run("pytest", "--junitxml=test-results.xml", "-k", "not js")