Skip to content

Commit ea9cc38

Browse files
committed
change when verify environment is run
1 parent d9823d4 commit ea9cc38

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/verify_environment.py renamed to tests/test_verify_environment.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from django.db import connection
55
import typing as t
66
from django.test import TestCase
7+
import pytest
78

89

910
def get_postgresql_version() -> t.Tuple[int, ...]:
@@ -22,6 +23,10 @@ def get_mysql_version():
2223
print("MySQL version:", version[0])
2324

2425

26+
@pytest.mark.skipif(
27+
os.environ.get("GITHUB_ACTIONS", None) != "true",
28+
reason="This test is only for the CI environment.",
29+
)
2530
class TestEnvironment(TestCase):
2631
def test(self):
2732
# verify that the environment is set up correctly - this is used in CI to make

0 commit comments

Comments
 (0)