diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index eb8df9ae8e..990264ad8c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -473,8 +473,6 @@ run_tutorials: - espresso - cuda - numa - only: - - schedules run_doxygen: <<: *global_job_definition diff --git a/doc/tutorials/CMakeLists.txt b/doc/tutorials/CMakeLists.txt index 6116511ab8..18798d65b6 100644 --- a/doc/tutorials/CMakeLists.txt +++ b/doc/tutorials/CMakeLists.txt @@ -71,14 +71,12 @@ function(NB_EXPORT) endif() add_custom_command( - OUTPUT ${HTML_FILE} - DEPENDS ${NB_FILE_RUN};${NB_EXPORT_ADD_SCRIPTS} + OUTPUT ${HTML_FILE} DEPENDS ${NB_FILE_RUN};${NB_EXPORT_ADD_SCRIPTS} COMMAND ${IPYTHON_EXECUTABLE} nbconvert --to "html" --output ${HTML_FILE} ${NB_FILE_RUN}) add_custom_command( - OUTPUT ${PY_FILE} - DEPENDS ${NB_FILE} + OUTPUT ${PY_FILE} DEPENDS ${NB_FILE} COMMAND ${IPYTHON_EXECUTABLE} nbconvert --to "python" --output ${PY_FILE} ${NB_FILE}) diff --git a/doc/tutorials/convert.py b/doc/tutorials/convert.py index fad0ad2d01..a54505de5c 100644 --- a/doc/tutorials/convert.py +++ b/doc/tutorials/convert.py @@ -29,7 +29,6 @@ import nbformat import re import os -import ast import sys import uuid sys.path.append('@CMAKE_SOURCE_DIR@/testsuite/scripts') diff --git a/testsuite/scripts/tutorials/test_convert.py b/testsuite/scripts/tutorials/test_convert.py index 1855a163e7..7c64bf6c2a 100644 --- a/testsuite/scripts/tutorials/test_convert.py +++ b/testsuite/scripts/tutorials/test_convert.py @@ -207,7 +207,9 @@ def test_cells_prepare_for_html(self): self.assertEqual(cell['source'], 'Question 2') cell = next(cells) self.assertEqual(cell['cell_type'], 'code') - self.assertEqual(cell['source'], '2\nimport matplotlib.pyplot\nglobal_var = 20') + self.assertEqual( + cell['source'], + '2\nimport matplotlib.pyplot\nglobal_var = 20') cell = next(cells) self.assertEqual(cell['cell_type'], 'code') self.assertEqual(cell['source'], '3')