Skip to content

Commit

Permalink
skip in not CI env
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielYang59 committed Oct 26, 2024
1 parent 2f7f993 commit abf5f8b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/performance/test_import_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
if TYPE_CHECKING:
from typing import Literal

if not os.getenv("CI"):
pytest.skip("ref time only comparable in CI runner", allow_module_level=True)

# NOTE: Toggle this to generate reference import time
GEN_REF_TIME: bool = False

Expand Down

0 comments on commit abf5f8b

Please sign in to comment.