Skip to content

Commit 388f40b

Browse files
committed
only require to build APIdocs when CI=true is set
1 parent 67457e1 commit 388f40b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/generate_eessi_testsuite_api_docs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
import mkdocs_gen_files
1111

1212
TEST_SUITE = "test-suite/test-suite"
13+
CI = os.getenv('CI')
1314

14-
if not os.path.isdir(TEST_SUITE):
15+
if CI and not os.path.isdir(TEST_SUITE):
1516
raise FileNotFoundError(f"Error: {TEST_SUITE} does not exist. Please clone the eessi/test-suite in a test-suite dir.")
1617

1718
# build a navigation for the menu and a dictionary of navigations for each section

0 commit comments

Comments
 (0)