Skip to content

Commit 6da835f

Browse files
committed
doc
1 parent 63c5bf2 commit 6da835f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
- name: Generate coverage report
8383
run: |
8484
pip install pytest pytest-cov
85-
PYTHONPATH=. UNITTEST_GOING=1 pytest --cov=./onnx_diagnostic/ --cov-report=xml --durations=10 _unittests --ignore _unittests/ut_reference/test_backend_extended_reference_evaluator.py --ignore _unittests/ut_reference/test_backend_onnxruntime_evaluator.py --ignore _unittests/ut_torch_models/test_tiny_llms_bypassed.py
85+
PYTHONPATH=. UNITTEST_GOING=1 UNITTEST_DOT=1 pytest --cov=./onnx_diagnostic/ --cov-report=xml --durations=10 _unittests --ignore _unittests/ut_reference/test_backend_extended_reference_evaluator.py --ignore _unittests/ut_reference/test_backend_onnxruntime_evaluator.py --ignore _unittests/ut_torch_models/test_tiny_llms_bypassed.py
8686
8787
- name: Upload coverage reports to Codecov
8888
uses: codecov/codecov-action@v3

_unittests/ut_xrun_doc/test_documentation_technical.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,13 @@ def add_test_methods(cls):
6868
this = os.path.abspath(os.path.dirname(__file__))
6969
fold = os.path.normpath(os.path.join(this, "..", "..", "_doc", "technical"))
7070
found = os.listdir(fold)
71+
has_dot = int(os.environ.get("UNITTEST_DOT", "0"))
7172
for name in found:
7273
if not name.endswith(".py") or not name.startswith("plot_"):
7374
continue
7475
reason = None
76+
if not reason and not has_dot and name in {"plot_layer_norm_discrepancies.py"}:
77+
reason = "dot not installed"
7578

7679
if reason:
7780

0 commit comments

Comments
 (0)