From 23d54d213d126e69bdcf6721bf17d05f33ac7812 Mon Sep 17 00:00:00 2001 From: Filip Weidemann Date: Tue, 30 Jul 2024 18:05:10 +0200 Subject: [PATCH] feat: execute tests in ci --- noxfile.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/noxfile.py b/noxfile.py index 62c201e..2d059a0 100644 --- a/noxfile.py +++ b/noxfile.py @@ -3,5 +3,15 @@ @nox.session def lint(session: nox.Session) -> None: - session.install("ruff") - session.run("ruff", "check") + session.install("poetry") + session.run("poetry", "install") + session.run("poetry", "run", "ruff", "check") + + +@nox.session +def test(session: nox.Session) -> None: + session.install("poetry") + session.run("poetry", "install") + + cmd = "poetry run django-app-helper djangocms_haystack test --cms --extra-settings tests/settings.py" + session.run(*cmd.split(" "))