Skip to content

Commit 40fdba4

Browse files
laraPProcaisa
andauthored
expand check for CI
Co-authored-by: ocaisa <alan.ocais@cecam.org>
1 parent 388f40b commit 40fdba4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/generate_eessi_testsuite_api_docs.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@
1212
TEST_SUITE = "test-suite/test-suite"
1313
CI = os.getenv('CI')
1414

15-
if CI and not os.path.isdir(TEST_SUITE):
16-
raise FileNotFoundError(f"Error: {TEST_SUITE} does not exist. Please clone the eessi/test-suite in a test-suite dir.")
15+
if not os.path.isdir(TEST_SUITE):
16+
if CI:
17+
raise FileNotFoundError(f"Error: {TEST_SUITE} does not exist. Please clone the eessi/test-suite in a test-suite dir.")
18+
else:
19+
print(f"Warning: {TEST_SUITE} does not exist. Ignoring this for a non-CI documentation build, but you could clone the eessi/test-suite in a test-suite dir to build the test suite API docs.")
1720

1821
# build a navigation for the menu and a dictionary of navigations for each section
1922
nav = mkdocs_gen_files.Nav()

0 commit comments

Comments
 (0)