Skip to content

Commit 9c45b85

Browse files
feat: Migrate launcher tool (#29)
* feat: Migrate launcher * feat: Migrate launcher * fix: Pre-commit * fix: Doc fixes * fix: Doc issues * fix: Doc dependencies * fix: Dependencies * fix: Deps * fix: supress warnings * fix: Deps * fix: Dependencies * fix: Modules * fix: Test approach * fix: rework CI * fix: Rework CI * fix: Click version * fix: Test
1 parent 09d5b2d commit 9c45b85

38 files changed

+3026
-27
lines changed

.github/workflows/cicd.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,23 @@ jobs:
4949
ON_UBUNTU: true
5050

5151
steps:
52-
- name: Run tests
53-
uses: ansys/actions/tests-pytest@v10
52+
- name: Checkout repository
53+
uses: actions/checkout@v3
54+
- name: Set up Python
55+
uses: actions/setup-python@v4
5456
with:
5557
python-version: ${{ env.MAIN_PYTHON_VERSION }}
58+
cache: 'pip'
59+
60+
- name: Install dependencies
61+
run: |
62+
python -m pip install --upgrade pip
63+
pip install -e .[tests]
64+
pip install tests/launcher/pkg_with_entrypoint
65+
66+
- name: Run tests
67+
run: |
68+
pytest
5669
5770
doc-build:
5871
name: Build documentation

.github/workflows/run_mapdl_tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ jobs:
3434
with:
3535
python-version: ${{ env.MAIN_PYTHON_VERSION }}
3636
- name: Install library, with test extra
37-
run: python -m pip install .[tests]
37+
run: |
38+
python -m pip install .[tests]
39+
python -m pip install tests/launcher/pkg_with_entrypoint
40+
3841
3942
- name: Unit testing
4043
run: |

doc/source/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
"sphinx_copybutton",
7777
"sphinx_design",
7878
"ansys_sphinx_theme.extension.autoapi",
79+
"sphinx_click", # Required by local-product-launcher
7980
]
8081

8182
# numpydoc configuration
@@ -113,3 +114,4 @@
113114
typehints_defaults = "comma"
114115
# additional logos for the latex coverpage
115116
latex_additional_files = [watermark, ansys_logo_white, ansys_logo_white_cropped]
117+
suppress_warnings = ["autoapi.python_import_resolution", "ref.python"]

doc/source/user_guide/index.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ your own code.
4545

4646
Learn how to use the report tool.
4747

48+
.. grid-item-card:: Ansys local launcher tool
49+
:padding: 2 2 2 2
50+
:link: launcher/index
51+
:link-type: doc
52+
53+
Learn how to use the launcher tool.
54+
4855
.. toctree::
4956
:hidden:
5057
:maxdepth: 3
@@ -53,4 +60,5 @@ your own code.
5360
ansys_downloader
5461
ansys_exceptions
5562
versioning
56-
report
63+
report
64+
launcher/index
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.. _ref_cli:
2+
3+
Command-line interface
4+
======================
5+
6+
You use the ``ansys-launcher`` command-line interface to edit the default
7+
launch configuration.
8+
9+
Configuration options for products are defined by each product plugin.
10+
11+
.. click:: ansys.tools.common.launcher._cli:cli
12+
:prog: ansys-launcher
13+
:nested: full
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
User guide
2+
----------
3+
4+
This section provides an overview of the Local Product Launcher and how to use it.
5+
6+
- The :ref:`rationale` page provides a high-level overview of the problem that the
7+
Local Product Launcher solves.
8+
- The :ref:`ref_cli` page describes the command-line interface.
9+
- The :ref:`plugin_creation` page describes how to create a launcher plugin to extend
10+
the Local Product Launcher for use with another Ansys product.
11+
12+
.. toctree::
13+
:maxdepth: 2
14+
:caption: Contents
15+
16+
rationale
17+
cli
18+
plugin_creation

0 commit comments

Comments
 (0)