Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add missing integrations-base test to noxfile #334

Merged
merged 2 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:

- name: Run tests
run: |
nox -t non-latest unit real-world
nox -t ci

- name: Build doc
run: |
Expand Down
15 changes: 12 additions & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,19 @@ def get_tests(self) -> str:
]


@nox.session(tags=["ci"])
def integrations_base(session: nox.Session) -> None:
session.install(
*INSTALL_CMD,
"-r", "requirements/test.txt",
)
session.run(*CMD, "tests/integrations/base")


for env in INTEGRATIONS:
@nox.session(
name=f"{env.library}_{env.version}",
tags=[env.library, "latest" if env.version == "latest" else "non-latest"],
tags=[env.library, "latest" if env.version == "latest" else "ci"],
)
def session(session: nox.Session, env=env) -> None:
if not env.constraint():
Expand All @@ -73,7 +82,7 @@ def session(session: nox.Session, env=env) -> None:
session.run(*CMD, env.get_tests())


@nox.session(tags=["unit"])
@nox.session(tags=["ci"])
def unit(session: nox.Session) -> None:
session.install(
*INSTALL_CMD,
Expand All @@ -82,7 +91,7 @@ def unit(session: nox.Session) -> None:
session.run(*CMD, "tests/unit")


@nox.session(tags=["real-world"])
@nox.session(tags=["ci"])
def real_world(session: nox.Session) -> None:
session.install(
*INSTALL_CMD,
Expand Down
Loading