Skip to content

Commit deeb83c

Browse files
committed
skip system tests when running in github actions
1 parent 3d40de0 commit deeb83c

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

packages/pandas-gbq/noxfile.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -400,14 +400,16 @@ def prerelease_deps(session):
400400
*session.posargs,
401401
)
402402

403-
session.run(
404-
"py.test",
405-
"--quiet",
406-
"-W default::PendingDeprecationWarning",
407-
f"--junitxml=prerelease_system_{session.python}_sponge_log.xml",
408-
os.path.join("tests", "system"),
409-
*session.posargs,
410-
)
403+
# Skip system tests when running in Github Actions since there are no credentials
404+
if os.environ.get("GITHUB_ACTIONS", "false") == "true":
405+
session.run(
406+
"py.test",
407+
"--quiet",
408+
"-W default::PendingDeprecationWarning",
409+
f"--junitxml=prerelease_system_{session.python}_sponge_log.xml",
410+
os.path.join("tests", "system"),
411+
*session.posargs,
412+
)
411413

412414

413415
@nox.session(python=DEFAULT_PYTHON_VERSION)

0 commit comments

Comments
 (0)