Skip to content

Commit

Permalink
add back demo
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuadavidthomas committed Oct 10, 2024
1 parent bafab3c commit ad657fc
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,25 @@ def types(session):
session.run(*command)


@nox.session
def demo(session):
session.run_install(
"uv",
"sync",
"--frozen",
"--extra",
"types",
env={"UV_PROJECT_ENVIRONMENT": session.virtualenv.location},
)

command = ["python", "example/demo.py", "runserver"]
if session.posargs and all(arg for arg in session.posargs):
command.append(*session.posargs)
else:
command.append("localhost:8000")
session.run(*command)


@nox.session
def gha_matrix(session):
sessions = session.run("python", "-m", "nox", "-l", "--json", silent=True)
Expand Down

0 comments on commit ad657fc

Please sign in to comment.