Skip to content

Commit

Permalink
Merge branch 'main' into feat/main_commands
Browse files Browse the repository at this point in the history
  • Loading branch information
clatapie committed Nov 22, 2024
2 parents 60e1895 + 9cdcaaa commit eea116a
Show file tree
Hide file tree
Showing 114 changed files with 5,103 additions and 2,622 deletions.
3 changes: 1 addition & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ updates:
package-ecosystem: "pip" # See documentation for possible values
insecure-external-code-execution: allow
schedule:
interval: "weekly"
interval: "weekly"
day: "friday"
time: "00:00"
labels:
Expand All @@ -34,7 +34,6 @@ updates:
minimal:
patterns:
- "ansys-api-mapdl"
- "importlib-metadata"
- "numpy"
- "platformdirs"
- "psutil"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cache_cleaner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4.2.1
uses: actions/checkout@v4.2.2

- name: Cleanup PR caches
if: github.event_name != 'workflow_dispatch'
Expand Down
37 changes: 25 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,18 @@ jobs:
python -c "from pyvista.plotting import system_supports_plotting; print('System support plotting ' + str(system_supports_plotting()))"


check-vulnerabilities:
name: "Check library vulnerabilities"
runs-on: ubuntu-latest
steps:
- uses: ansys/actions/check-vulnerabilities@v8
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
python-package-name: ${{ env.PACKAGE_NAME }}
dev-mode: ${{ github.ref != 'refs/heads/main' }}
upload-reports: True

docs-build:
name: "Build documentation"
runs-on: ubuntu-latest
Expand All @@ -152,7 +164,7 @@ jobs:
GRPC_ENABLE_FORK_SUPPORT: false # See #3434
steps:
- name: "Install Git and checkout project"
uses: actions/checkout@v4.2.1
uses: actions/checkout@v4.2.2

- name: "Login in Github container registry"
uses: docker/login-action@v3.3.0
Expand Down Expand Up @@ -349,7 +361,7 @@ jobs:

steps:
- name: "Install Git and checkout project"
uses: actions/checkout@v4.2.1
uses: actions/checkout@v4.2.2

- name: Get event type and user to check permissions.
id: get_user
Expand Down Expand Up @@ -404,7 +416,7 @@ jobs:

steps:
- name: "Install Git and checkout project"
uses: actions/checkout@v4.2.1
uses: actions/checkout@v4.2.2

- name: "Login in Github container registry"
uses: docker/login-action@v3.3.0
Expand Down Expand Up @@ -531,7 +543,7 @@ jobs:
--ignore_image_cache \
--cov-report=xml:${{ matrix.mapdl-version }}-remote.xml
- uses: codecov/codecov-action@v4
- uses: codecov/codecov-action@v5
name: "Upload coverage to Codecov"
with:
token: ${{ secrets.CODECOV_TOKEN }} # required
Expand Down Expand Up @@ -588,7 +600,7 @@ jobs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: "Install Git and checkout project"
uses: actions/checkout@v4.2.1
uses: actions/checkout@v4.2.2

- uses: tspascoal/get-user-teams-membership@v3
id: is_organization_member
Expand Down Expand Up @@ -635,7 +647,7 @@ jobs:

steps:
- name: "Install Git and checkout project"
uses: actions/checkout@v4.2.1
uses: actions/checkout@v4.2.2
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
Expand Down Expand Up @@ -730,7 +742,7 @@ jobs:
reactions: rocket

- uses: codecov/codecov-action@v4
- uses: codecov/codecov-action@v5
name: "Upload coverage to Codecov"
with:
token: ${{ secrets.CODECOV_TOKEN }} # required
Expand Down Expand Up @@ -763,10 +775,11 @@ jobs:
env:
ON_LOCAL: true
ON_UBUNTU: true
TESTING_MINIMAL: true

steps:
- name: "Install Git and checkout project"
uses: actions/checkout@v4.2.1
uses: actions/checkout@v4.2.2
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
Expand Down Expand Up @@ -836,7 +849,7 @@ jobs:
${{ env.PYTEST_ARGUMENTS }} \
--cov-report=xml:${{ matrix.mapdl-version }}-minimal.xml
- uses: codecov/codecov-action@v4
- uses: codecov/codecov-action@v5
name: "Upload coverage to Codecov"
with:
token: ${{ secrets.CODECOV_TOKEN }} # required
Expand All @@ -861,7 +874,7 @@ jobs:
ON_LOCAL: TRUE

steps:
- uses: actions/checkout@v4.2.1
- uses: actions/checkout@v4.2.2

# Skipping because it is installed locally.
# - name: Setup Python
Expand Down Expand Up @@ -909,7 +922,7 @@ jobs:
--ignore_image_cache \
--cov-report=xml:windows-v22.2.0-local.xml
- uses: codecov/codecov-action@v4
- uses: codecov/codecov-action@v5
name: "Upload coverage to Codecov"
with:
token: ${{ secrets.CODECOV_TOKEN }} # required
Expand Down Expand Up @@ -1018,7 +1031,7 @@ jobs:
os: [ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v4.2.1
- uses: actions/checkout@v4.2.2
- name: "Set up Julia"
uses: julia-actions/setup-julia@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
name: Syncer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.1
- uses: actions/checkout@v4.2.2
- uses: micnncim/action-label-syncer@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linkchecker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
SHELLOPTS: "errexit:pipefail"
steps:
- name: "Install Git and checkout project"
uses: actions/checkout@v4.2.1
uses: actions/checkout@v4.2.2

- name: "Login in Github container registry"
uses: docker/login-action@v3.3.0
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ci:
repos:

- repo: https://github.com/ansys/pre-commit-hooks
rev: v0.4.3
rev: v0.4.4
hooks:
- id: add-license-headers
args:
Expand Down Expand Up @@ -46,7 +46,7 @@ repos:
- --line-length=88

- repo: https://github.com/adamchainz/blacken-docs
rev: 1.19.0
rev: 1.19.1
hooks:
- id: blacken-docs
additional_dependencies: [black==24.10.0]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/ansys/pymapdl/blob/main/doc/source/_static/logo_dark.png">
<source media="(prefers-color-scheme: light)" srcset="https://github.com/ansys/pymapdl/blob/main/doc/source/_static/logo_light.png">
<img alt="PyMAPDL Logo" src="https://github.com/ansys/pymapdl/blob/main/doc/source/_static/logo_light.png" width="70%">
<img alt="PyMAPDL Logo" src="https://raw.githubusercontent.com/ansys/pymapdl/blob/main/doc/source/_static/logo_light.png" width="70%">
</picture>
</p>

Expand Down
4 changes: 1 addition & 3 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
ignore:
- "src/ansys/mapdl/core/_commands"
- "src/ansys/mapdl/core/jupyter.py"
- "src/ansys/mapdl/core/mapdl_console.py"
- "src/ansys/mapdl/core/mapdl_inprocess.py"
Expand All @@ -8,6 +7,7 @@ comment:
layout: "diff"
behavior: default
require_changes: true # Avoid coverage comment if no files are changed.
after_n_builds: 3

coverage:
range: 70..100
Expand All @@ -31,5 +31,3 @@ codecov:
wait_for_ci: yes
# do not notify until at least 5 builds have been uploaded from the CI pipeline
after_n_builds: 3
comment:
after_n_builds: 3
1 change: 1 addition & 0 deletions doc/changelog.d/3466.documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docs: documenting using pymapdl on clusters
1 change: 1 addition & 0 deletions doc/changelog.d/3474.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
refactor: modifying ``subprocess`` calls and removing ``try except continue`` statements
1 change: 1 addition & 0 deletions doc/changelog.d/3497.documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
feat: support for launching an MAPDL instance in an SLURM HPC cluster
1 change: 1 addition & 0 deletions doc/changelog.d/3500.documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
feat: passing tight integration env vars to mapdl
1 change: 1 addition & 0 deletions doc/changelog.d/3501.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test: check all commands are submitted
1 change: 1 addition & 0 deletions doc/changelog.d/3505.maintenance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ci: ``ansys/actions/check-vulnerabilities`` to CI-CD
1 change: 1 addition & 0 deletions doc/changelog.d/3506.documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docs: review of documenting using pymapdl on clusters (#3466)
1 change: 1 addition & 0 deletions doc/changelog.d/3507.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fix: raising port busy when connecting
1 change: 1 addition & 0 deletions doc/changelog.d/3511.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
refactor: externalise the 'report' features to another file
1 change: 1 addition & 0 deletions doc/changelog.d/3513.documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docs: adding-sbatch-support
1 change: 1 addition & 0 deletions doc/changelog.d/3515.dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build: bump the core group with 2 updates
1 change: 1 addition & 0 deletions doc/changelog.d/3516.dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build: bump pyansys-tools-report from 0.8.0 to 0.8.1 in the testing group
1 change: 1 addition & 0 deletions doc/changelog.d/3517.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
refactor: simplifying directory setter property
1 change: 1 addition & 0 deletions doc/changelog.d/3521.maintenance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ci: bump actions/checkout from 4.2.1 to 4.2.2 in the actions group
1 change: 1 addition & 0 deletions doc/changelog.d/3522.maintenance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ci: pre-commit autoupdate
1 change: 1 addition & 0 deletions doc/changelog.d/3523.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
refactor: moving tests to classes to avoid repeated fixtures execution
1 change: 1 addition & 0 deletions doc/changelog.d/3524.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
refactor: using test classes in test_inline tests
1 change: 1 addition & 0 deletions doc/changelog.d/3525.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fix: logo link
1 change: 1 addition & 0 deletions doc/changelog.d/3526.documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docs: removing extra links from landing page.
1 change: 1 addition & 0 deletions doc/changelog.d/3527.documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DOC: Update pymapdl.rst
1 change: 1 addition & 0 deletions doc/changelog.d/3528.miscellaneous.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
feat: using version instead of exec_path for the MPI checks
1 change: 1 addition & 0 deletions doc/changelog.d/3533.dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build: bump grpcio from 1.67.0 to 1.67.1 in the grpc-deps group
1 change: 1 addition & 0 deletions doc/changelog.d/3534.dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build: bump the core group with 2 updates
1 change: 1 addition & 0 deletions doc/changelog.d/3535.dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build: bump pytest-cov from 5.0.0 to 6.0.0 in the testing group
1 change: 1 addition & 0 deletions doc/changelog.d/3540.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fix: checking port on non-grpc mapdl instances
1 change: 1 addition & 0 deletions doc/changelog.d/3541.maintenance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build: bump numpy from 2.1.2 to 2.1.3 in the minimal group
1 change: 1 addition & 0 deletions doc/changelog.d/3542.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
chore: fix codecov.yml content
1 change: 1 addition & 0 deletions doc/changelog.d/3545.maintenance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ci: pre-commit autoupdate
1 change: 1 addition & 0 deletions doc/changelog.d/3546.documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[maint] remove importlib-metadata requirement
1 change: 1 addition & 0 deletions doc/changelog.d/3547.dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build: bump ansys-sphinx-theme from 1.2.0 to 1.2.1 in the core group
1 change: 1 addition & 0 deletions doc/changelog.d/3549.documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docs: extracting information to another rst file
1 change: 1 addition & 0 deletions doc/changelog.d/3550.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
refactor: adding logging calls to misc.py
1 change: 1 addition & 0 deletions doc/changelog.d/3551.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
refactor: removing-`run_as_prep7`-in-favour-of-`run_as`
1 change: 1 addition & 0 deletions doc/changelog.d/3552.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fix: warning and add an exception if using class alone
1 change: 1 addition & 0 deletions doc/changelog.d/3553.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
refactor: adding-type-ints-to-misc
1 change: 1 addition & 0 deletions doc/changelog.d/3554.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test: adding test for start_timeout arg
1 change: 1 addition & 0 deletions doc/changelog.d/3555.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fix: gui-extended-example
1 change: 1 addition & 0 deletions doc/changelog.d/3557.maintenance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ci: bump codecov/codecov-action from 4 to 5 in the actions group
1 change: 1 addition & 0 deletions doc/changelog.d/3559.miscellaneous.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
feat: raising error if plot image cannot be obtained
1 change: 1 addition & 0 deletions doc/source/api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ PyMAPDL, see :ref:`ref_mapdl_commands`.
database
geometry
helper
information
inline
krylov
launcher
Expand Down
35 changes: 35 additions & 0 deletions doc/source/api/information.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
.. _ref_information_api:

``Information`` module
======================

``Information`` class attributes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. currentmodule:: ansys.mapdl.core.information

.. autosummary::
:toctree: _autosummary

Information.aux_capabilities
Information.boundary_condition_information
Information.config_values
Information.database_status
Information.global_status
Information.job_information
Information.load_step_options
Information.mapdl_version
Information.model_information
Information.post_capabilities
Information.preprocessing_capabilities
Information.product
Information.products
Information.pymapdl_version
Information.routine_information
Information.scratch_memory_status
Information.solution_options
Information.solution_options_configuration
Information.stitles
Information.title
Information.titles
Information.units
Loading

0 comments on commit eea116a

Please sign in to comment.