forked from elastic/rally
-
Notifications
You must be signed in to change notification settings - Fork 0
/
noxfile.py
34 lines (26 loc) · 1.01 KB
/
noxfile.py
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
31
32
33
34
import nox
@nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12"])
def test(session: nox.Session) -> None:
session.install(".[develop]")
session.run("pytest")
@nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12"])
def it(session: nox.Session) -> None:
session.install(".[develop]")
session.run("pytest", "-s", "it")
@nox.session(python="3.12")
def it_serverless(session: nox.Session) -> None:
session.install(".[develop]")
session.install("pytest-rally @ git+https://github.com/elastic/pytest-rally.git")
session.run(
"pytest",
"-s",
"it/track_repo_compatibility",
"--log-cli-level=INFO",
"--track-repository-test-directory=it_serverless",
*session.posargs,
)
@nox.session(python="3")
def rally_tracks_compat(session: nox.Session) -> None:
session.install(".[develop]")
session.install("pytest-rally @ git+https://github.com/elastic/pytest-rally.git")
session.run("pytest", "it/track_repo_compatibility", "--log-cli-level=INFO")