Skip to content

Commit

Permalink
🔧 fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
shroominic committed Oct 30, 2024
1 parent 23e01dd commit 71901a3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ def codebox(request: pytest.FixtureRequest) -> CodeBox:
if request.param == "local":
return LOCALBOX

if request.param == "docker" and os.system("docker ps > /dev/null 2>&1") != 0:
if request.param == "docker" and (
os.system("docker ps > /dev/null 2>&1") != 0
or os.getenv("GITHUB_ACTIONS") == "true"
):
pytest.skip("Docker is not running")

return CodeBox(api_key=request.param)

0 comments on commit 71901a3

Please sign in to comment.