Skip to content

Commit

Permalink
Try again
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodmane committed Dec 21, 2024
1 parent e6ff334 commit 5e6b0ff
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import nox
from nox.sessions import Session

PROJECT_ROOT = Path(__file__).parent


@nox.session(python=["3.10", "3.11", "3.12", "3.13"])
def tests(session: Session) -> None:
Expand Down Expand Up @@ -43,8 +45,18 @@ def test_typedoc(session: Session, typedoc: str) -> None:
session.run("npx", "tsc", "--version", external=True)
session.run("npx", "typedoc", "--version", external=True)
# Run typescript tests
test_file = (Path(__file__).parent / "tests/test.ts").resolve()
session.run("npx", "--import", "tsx", "--test", test_file, external=True)
test_file = (PROJECT_ROOT / "tests/test.ts").resolve()
register_import_hook = PROJECT_ROOT / "sphinx_js/js/registerImportHook.mjs"
session.run(
"npx",
"--import",
register_import_hook,
"--import",
"tsx",
"--test",
test_file,
external=True,
)
# Run Python tests
session.run("pytest", "--junitxml=test-results.xml", "-k", "not js")

Expand Down

0 comments on commit 5e6b0ff

Please sign in to comment.