diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index c6e8c43f..e1aa4289 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -104,11 +104,19 @@ jobs: runs-on: ubuntu-latest needs: [doc-style] steps: + - name: Temporary handle broken package dependencies + shell: bash + run: | + sudo apt-get update + sudo apt-get --fix-broken install -y + sudo apt-get install -y texlive-latex-extra latexmk texlive-fonts-extra + - name: "Run Ansys documentation building action" - uses: ansys/actions/doc-build@v8 + uses: ansys/actions/doc-build@21c9de9bee9692173780696d4a39964f20b9cfa3 # v10.1.5 with: python-version: ${{ env.MAIN_PYTHON_VERSION }} - dependencies: "texlive-fonts-extra " + skip-install: true + #dependencies: "texlive-fonts-extra" package: name: "Package library" diff --git a/doc/source/conf.py b/doc/source/conf.py index 4c5988fd..68a4ab51 100755 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -140,7 +140,7 @@ # Configuration for Sphinx autoapi autoapi_type = "python" -autoapi_dirs = ["../../src/ansys/"] +autoapi_dirs = ["../../src/ansys/modelcenter/workflow"] autoapi_root = "api" autoapi_options = [ "members", @@ -150,7 +150,7 @@ "special-members", ] autoapi_template_dir = get_autoapi_templates_dir_relative_path(Path(__file__)) -suppress_warnings = ["autoapi.python_import_resolution"] +suppress_warnings = ["autoapi.python_import_resolution", "design.fa-build"] autoapi_python_use_implicit_namespaces = True autoapi_render_in_single_page = ["class", "enum", "exception"] autoapi_own_page_level = "class" @@ -214,4 +214,4 @@ # change the preamble of latex with customized title page # variables are the title of pdf, watermark latex_elements = {"preamble": latex.generate_preamble(html_title)} -sd_fontawesome_latex = True +# sd_fontawesome_latex = True diff --git a/doc/source/contributing/index.rst b/doc/source/contributing/index.rst index efd5d6fb..d81127c2 100644 --- a/doc/source/contributing/index.rst +++ b/doc/source/contributing/index.rst @@ -108,14 +108,14 @@ for your operating system: :: - make -C doc/ html && your_browser_name doc/build/html/index.html + make -C doc/ html && your_browser_name doc/_build/html/index.html .. tab-item:: macOS :sync: macos :: - make -C doc/ html && your_browser_name doc/build/html/index.html + make -C doc/ html && your_browser_name doc/_build/html/index.html .. tab-item:: Windows :sync: windows @@ -123,7 +123,7 @@ for your operating system: :: .\doc\make.bat html - .\doc\build\html\index.html + .\doc\_build\html\index.html Post issues ----------- diff --git a/pyproject.toml b/pyproject.toml index c9d91e90..d11f8b66 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,24 +40,23 @@ dependencies = [ [project.optional-dependencies] doc=[ "ansys-engineeringworkflow-api==0.1.0", - "ansys-sphinx-theme==0.14.0", - "numpydoc==1.6.0", + "ansys-sphinx-theme==1.6.3", + "numpydoc==1.8.0", "pyansys-tools-variableinterop==0.1.1", "pytest-sphinx==0.6.3", - "Sphinx==7.2.6", + "Sphinx==8.1.3", "sphinx-copybutton==0.5.2", "sphinx-design==0.6.1", - "sphinx-copybutton==0.5.2", - "sphinx-autoapi==3.4.0", - "sphinx-gallery==0.15.0", - "sphinx-notfound-page==1.0.4", + "sphinx-autoapi==3.6.1", + "sphinx-gallery==0.19.0", + "sphinx-notfound-page==1.1.0", ] tests = [ "ansys-engineeringworkflow-api==0.1.0", - "grpcio==1.59.0", + "grpcio==1.71.2", "pyansys-tools-variableinterop==0.1.1", "pytest==8.0.0", - "pytest-cov==4.1.0", + "pytest-cov==6.0.0", ] [tool.flit.module] diff --git a/tests/test_engine.py b/tests/test_engine.py index fbe1a3d3..168c5bed 100644 --- a/tests/test_engine.py +++ b/tests/test_engine.py @@ -434,7 +434,7 @@ def test_get_channel(setup_function) -> None: channel = engine.channel # Assert - assert cast(Any, channel)._channel.target() == b"localhost:12345" + assert cast(Any, channel)._channel.target() == b"dns:///localhost:12345" def test_heartbeat_method_sends_grpc_calls_until_released(monkeypatch, setup_function) -> None: