Skip to content

Commit eea116a

Browse files
committed
Merge branch 'main' into feat/main_commands
2 parents 60e1895 + 9cdcaaa commit eea116a

File tree

114 files changed

+5103
-2622
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+5103
-2622
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ updates:
2020
package-ecosystem: "pip" # See documentation for possible values
2121
insecure-external-code-execution: allow
2222
schedule:
23-
interval: "weekly"
23+
interval: "weekly"
2424
day: "friday"
2525
time: "00:00"
2626
labels:
@@ -34,7 +34,6 @@ updates:
3434
minimal:
3535
patterns:
3636
- "ansys-api-mapdl"
37-
- "importlib-metadata"
3837
- "numpy"
3938
- "platformdirs"
4039
- "psutil"

.github/workflows/cache_cleaner.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Check out code
13-
uses: actions/[email protected].1
13+
uses: actions/[email protected].2
1414

1515
- name: Cleanup PR caches
1616
if: github.event_name != 'workflow_dispatch'

.github/workflows/ci.yml

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,18 @@ jobs:
137137
python -c "from pyvista.plotting import system_supports_plotting; print('System support plotting ' + str(system_supports_plotting()))"
138138

139139

140+
check-vulnerabilities:
141+
name: "Check library vulnerabilities"
142+
runs-on: ubuntu-latest
143+
steps:
144+
- uses: ansys/actions/check-vulnerabilities@v8
145+
with:
146+
python-version: ${{ env.MAIN_PYTHON_VERSION }}
147+
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
148+
python-package-name: ${{ env.PACKAGE_NAME }}
149+
dev-mode: ${{ github.ref != 'refs/heads/main' }}
150+
upload-reports: True
151+
140152
docs-build:
141153
name: "Build documentation"
142154
runs-on: ubuntu-latest
@@ -152,7 +164,7 @@ jobs:
152164
GRPC_ENABLE_FORK_SUPPORT: false # See #3434
153165
steps:
154166
- name: "Install Git and checkout project"
155-
uses: actions/[email protected].1
167+
uses: actions/[email protected].2
156168

157169
- name: "Login in Github container registry"
158170
uses: docker/[email protected]
@@ -349,7 +361,7 @@ jobs:
349361

350362
steps:
351363
- name: "Install Git and checkout project"
352-
uses: actions/[email protected].1
364+
uses: actions/[email protected].2
353365

354366
- name: Get event type and user to check permissions.
355367
id: get_user
@@ -404,7 +416,7 @@ jobs:
404416

405417
steps:
406418
- name: "Install Git and checkout project"
407-
uses: actions/[email protected].1
419+
uses: actions/[email protected].2
408420

409421
- name: "Login in Github container registry"
410422
uses: docker/[email protected]
@@ -531,7 +543,7 @@ jobs:
531543
--ignore_image_cache \
532544
--cov-report=xml:${{ matrix.mapdl-version }}-remote.xml
533545
534-
- uses: codecov/codecov-action@v4
546+
- uses: codecov/codecov-action@v5
535547
name: "Upload coverage to Codecov"
536548
with:
537549
token: ${{ secrets.CODECOV_TOKEN }} # required
@@ -588,7 +600,7 @@ jobs:
588600
matrix: ${{ steps.set-matrix.outputs.matrix }}
589601
steps:
590602
- name: "Install Git and checkout project"
591-
uses: actions/[email protected].1
603+
uses: actions/[email protected].2
592604

593605
- uses: tspascoal/get-user-teams-membership@v3
594606
id: is_organization_member
@@ -635,7 +647,7 @@ jobs:
635647

636648
steps:
637649
- name: "Install Git and checkout project"
638-
uses: actions/[email protected].1
650+
uses: actions/[email protected].2
639651
with:
640652
repository: ${{ github.event.pull_request.head.repo.full_name }}
641653
ref: ${{ github.event.pull_request.head.ref }}
@@ -730,7 +742,7 @@ jobs:
730742
731743
reactions: rocket
732744

733-
- uses: codecov/codecov-action@v4
745+
- uses: codecov/codecov-action@v5
734746
name: "Upload coverage to Codecov"
735747
with:
736748
token: ${{ secrets.CODECOV_TOKEN }} # required
@@ -763,10 +775,11 @@ jobs:
763775
env:
764776
ON_LOCAL: true
765777
ON_UBUNTU: true
778+
TESTING_MINIMAL: true
766779

767780
steps:
768781
- name: "Install Git and checkout project"
769-
uses: actions/[email protected].1
782+
uses: actions/[email protected].2
770783
with:
771784
repository: ${{ github.event.pull_request.head.repo.full_name }}
772785
ref: ${{ github.event.pull_request.head.ref }}
@@ -836,7 +849,7 @@ jobs:
836849
${{ env.PYTEST_ARGUMENTS }} \
837850
--cov-report=xml:${{ matrix.mapdl-version }}-minimal.xml
838851
839-
- uses: codecov/codecov-action@v4
852+
- uses: codecov/codecov-action@v5
840853
name: "Upload coverage to Codecov"
841854
with:
842855
token: ${{ secrets.CODECOV_TOKEN }} # required
@@ -861,7 +874,7 @@ jobs:
861874
ON_LOCAL: TRUE
862875

863876
steps:
864-
- uses: actions/[email protected].1
877+
- uses: actions/[email protected].2
865878

866879
# Skipping because it is installed locally.
867880
# - name: Setup Python
@@ -909,7 +922,7 @@ jobs:
909922
--ignore_image_cache \
910923
--cov-report=xml:windows-v22.2.0-local.xml
911924
912-
- uses: codecov/codecov-action@v4
925+
- uses: codecov/codecov-action@v5
913926
name: "Upload coverage to Codecov"
914927
with:
915928
token: ${{ secrets.CODECOV_TOKEN }} # required
@@ -1018,7 +1031,7 @@ jobs:
10181031
os: [ubuntu-latest, windows-latest]
10191032

10201033
steps:
1021-
- uses: actions/[email protected].1
1034+
- uses: actions/[email protected].2
10221035
- name: "Set up Julia"
10231036
uses: julia-actions/setup-julia@v2
10241037
with:

.github/workflows/label.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
name: Syncer
2222
runs-on: ubuntu-latest
2323
steps:
24-
- uses: actions/[email protected].1
24+
- uses: actions/[email protected].2
2525
- uses: micnncim/action-label-syncer@v1
2626
env:
2727
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/linkchecker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
SHELLOPTS: "errexit:pipefail"
3232
steps:
3333
- name: "Install Git and checkout project"
34-
uses: actions/[email protected].1
34+
uses: actions/[email protected].2
3535

3636
- name: "Login in Github container registry"
3737
uses: docker/[email protected]

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ci:
1414
repos:
1515

1616
- repo: https://github.com/ansys/pre-commit-hooks
17-
rev: v0.4.3
17+
rev: v0.4.4
1818
hooks:
1919
- id: add-license-headers
2020
args:
@@ -46,7 +46,7 @@ repos:
4646
- --line-length=88
4747

4848
- repo: https://github.com/adamchainz/blacken-docs
49-
rev: 1.19.0
49+
rev: 1.19.1
5050
hooks:
5151
- id: blacken-docs
5252
additional_dependencies: [black==24.10.0]

README.md

Lines changed: 1 addition & 1 deletion

codecov.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
ignore:
2-
- "src/ansys/mapdl/core/_commands"
32
- "src/ansys/mapdl/core/jupyter.py"
43
- "src/ansys/mapdl/core/mapdl_console.py"
54
- "src/ansys/mapdl/core/mapdl_inprocess.py"
@@ -8,6 +7,7 @@ comment:
87
layout: "diff"
98
behavior: default
109
require_changes: true # Avoid coverage comment if no files are changed.
10+
after_n_builds: 3
1111

1212
coverage:
1313
range: 70..100
@@ -31,5 +31,3 @@ codecov:
3131
wait_for_ci: yes
3232
# do not notify until at least 5 builds have been uploaded from the CI pipeline
3333
after_n_builds: 3
34-
comment:
35-
after_n_builds: 3
Lines changed: 1 addition & 0 deletions

doc/changelog.d/3474.added.md

Lines changed: 1 addition & 0 deletions

0 commit comments

Comments
 (0)