Skip to content

Commit

Permalink
feat: execute tests in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
filipweidemann committed Jul 30, 2024
1 parent 2c0b9c3 commit 23d54d2
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(" "))

0 comments on commit 23d54d2

Please sign in to comment.