Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,23 @@ jobs:
ON_UBUNTU: true

steps:
- name: Run tests
uses: ansys/actions/tests-pytest@v10
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}
cache: 'pip'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[tests]
pip install tests/launcher/pkg_with_entrypoint

- name: Run tests
run: |
pytest

doc-build:
name: Build documentation
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/run_mapdl_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ jobs:
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}
- name: Install library, with test extra
run: python -m pip install .[tests]
run: |
python -m pip install .[tests]
python -m pip install tests/launcher/pkg_with_entrypoint


- name: Unit testing
run: |
Expand Down
2 changes: 2 additions & 0 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
"sphinx_copybutton",
"sphinx_design",
"ansys_sphinx_theme.extension.autoapi",
"sphinx_click", # Required by local-product-launcher
]

# numpydoc configuration
Expand Down Expand Up @@ -113,3 +114,4 @@
typehints_defaults = "comma"
# additional logos for the latex coverpage
latex_additional_files = [watermark, ansys_logo_white, ansys_logo_white_cropped]
suppress_warnings = ["autoapi.python_import_resolution", "ref.python"]
10 changes: 9 additions & 1 deletion doc/source/user_guide/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ your own code.

Learn how to use the report tool.

.. grid-item-card:: Ansys local launcher tool
:padding: 2 2 2 2
:link: launcher/index
:link-type: doc

Learn how to use the launcher tool.

.. toctree::
:hidden:
:maxdepth: 3
Expand All @@ -53,4 +60,5 @@ your own code.
ansys_downloader
ansys_exceptions
versioning
report
report
launcher/index
13 changes: 13 additions & 0 deletions doc/source/user_guide/launcher/cli.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.. _ref_cli:

Command-line interface
======================

You use the ``ansys-launcher`` command-line interface to edit the default
launch configuration.

Configuration options for products are defined by each product plugin.

.. click:: ansys.tools.common.launcher._cli:cli
:prog: ansys-launcher
:nested: full
18 changes: 18 additions & 0 deletions doc/source/user_guide/launcher/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
User guide
----------

This section provides an overview of the Local Product Launcher and how to use it.

- The :ref:`rationale` page provides a high-level overview of the problem that the
Local Product Launcher solves.
- The :ref:`ref_cli` page describes the command-line interface.
- The :ref:`plugin_creation` page describes how to create a launcher plugin to extend
the Local Product Launcher for use with another Ansys product.

.. toctree::
:maxdepth: 2
:caption: Contents

rationale
cli
plugin_creation
Loading