Skip to content

Commit

Permalink
exclude azure
Browse files Browse the repository at this point in the history
  • Loading branch information
rasbt committed Apr 25, 2024
1 parent c1ddf36 commit 8a68f20
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/test_readme.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Copyright Lightning AI. Licensed under the Apache License 2.0, see LICENSE file.

from pathlib import Path
import os
import pytest
import requests
import subprocess
Expand Down Expand Up @@ -28,7 +29,12 @@ def run_command(command):
raise RuntimeError(error_message) from None


@pytest.mark.skipif(sys.platform.startswith("win") or sys.platform == "darwin", reason="Tests too slow on Windows and Mac CI")
@pytest.mark.skipif(
sys.platform.startswith("win") or
sys.platform == "darwin" or
'AGENT_NAME' in os.environ,
reason="Does not run on Windows, macOS, or Azure Pipelines"
)
@pytest.mark.dependency()
def test_download_model():
repo_id = str(REPO_ID).replace("\\", "/") # fix for Windows CI
Expand Down

0 comments on commit 8a68f20

Please sign in to comment.