Skip to content

Commit 7fdb05b

Browse files
committed
Merge branch 'main' into release/0.10
2 parents 5303f95 + 9b84ce1 commit 7fdb05b

Some content is hidden

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

64 files changed

+232
-109
lines changed

.github/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ dependencies:
99
- any-glob-to-any-file: ['pyproject.toml', 'requirements/*']
1010
CI/CD:
1111
- changed-files:
12-
- any-glob-to-any-file: ['.github/**/*', '.ci/**/*']
12+
- any-glob-to-any-file: ['.github/**/*', '.ci/**/*', 'docker/**/*']

.github/labels.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,7 @@
4141
- name: CI/CD
4242
description: ""
4343
color: b5f226
44+
45+
- name: future
46+
description: To be implemented in the future
47+
color: 5319e7

.github/release.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
changelog:
2+
categories:
3+
- title: New features or code improvements
4+
labels:
5+
- enhancement
6+
- title: Bug fixes or behavior changes
7+
labels:
8+
- bug
9+
- title: Documentation
10+
labels:
11+
- documentation
12+
- title: Maintenance & Testing
13+
labels:
14+
- dependabot
15+
- dependencies
16+
- testing

.github/workflows/ci_cd.yml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ jobs:
104104
runs-on: ubuntu-latest
105105
steps:
106106
- name: PyAnsys code style checks
107-
uses: ansys/actions/code-style@v4
107+
uses: ansys/actions/code-style@v5
108108
with:
109109
python-version: ${{ env.MAIN_PYTHON_VERSION }}
110110

@@ -113,7 +113,7 @@ jobs:
113113
runs-on: ubuntu-latest
114114
steps:
115115
- name: PyAnsys documentation style checks
116-
uses: ansys/actions/doc-style@v4
116+
uses: ansys/actions/doc-style@v5
117117
with:
118118
token: ${{ secrets.GITHUB_TOKEN }}
119119

@@ -133,7 +133,7 @@ jobs:
133133
os: macos-latest
134134
steps:
135135
- name: Build wheelhouse and perform smoke test
136-
uses: ansys/actions/build-wheelhouse@v4
136+
uses: ansys/actions/build-wheelhouse@v5
137137
with:
138138
library-name: ${{ env.PACKAGE_NAME }}
139139
operating-system: ${{ matrix.os }}
@@ -162,7 +162,7 @@ jobs:
162162

163163
- name: Get all doc files that have changed
164164
id: changed-files-yaml
165-
uses: tj-actions/changed-files@v40
165+
uses: tj-actions/changed-files@v41
166166
with:
167167
files_yaml: |
168168
doc:
@@ -213,7 +213,7 @@ jobs:
213213
grep -q 'WB Initialize Done' <(timeout 60 tail -f log.txt)
214214
215215
- name: Testing
216-
uses: ansys/actions/tests-pytest@v4
216+
uses: ansys/actions/tests-pytest@v5
217217
with:
218218
python-version: ${{ env.MAIN_PYTHON_VERSION }}
219219

@@ -224,15 +224,15 @@ jobs:
224224
run: echo "DOCKER_IMAGE_VERSION=${{needs.revn-variations.outputs.stable_container_revn}}" >> $GITHUB_ENV
225225

226226
- name: Upload coverage results
227-
uses: actions/upload-artifact@v3
227+
uses: actions/upload-artifact@v4
228228
if: matrix.mechanical-version == env.DOCKER_IMAGE_VERSION
229229
with:
230230
name: coverage-tests
231231
path: .cov
232232
retention-days: 7
233233

234234
- name: Upload coverage results (as .coverage)
235-
uses: actions/upload-artifact@v3
235+
uses: actions/upload-artifact@v4
236236
if: matrix.mechanical-version == env.DOCKER_IMAGE_VERSION
237237
with:
238238
name: coverage-file-tests
@@ -249,7 +249,7 @@ jobs:
249249
lscpu
250250
251251
- name: Upload container logs
252-
uses: actions/upload-artifact@v3
252+
uses: actions/upload-artifact@v4
253253
with:
254254
name: mechanical_tests_log-${{ matrix.mechanical-version }}
255255
path: mechanical_tests_log-${{ matrix.mechanical-version }}.txt
@@ -317,15 +317,15 @@ jobs:
317317
fi
318318
319319
- name: Upload coverage results
320-
uses: actions/upload-artifact@v3
320+
uses: actions/upload-artifact@v4
321321
if: env.MAIN_PYTHON_VERSION == matrix.python-version
322322
with:
323323
name: coverage-tests-embedding
324324
path: .cov
325325
retention-days: 7
326326

327327
- name: Upload coverage results (as .coverage)
328-
uses: actions/upload-artifact@v3
328+
uses: actions/upload-artifact@v4
329329
if: env.MAIN_PYTHON_VERSION == matrix.python-version
330330
with:
331331
name: coverage-file-tests-embedding
@@ -395,15 +395,15 @@ jobs:
395395
fi
396396
397397
- name: Upload coverage results
398-
uses: actions/upload-artifact@v3
398+
uses: actions/upload-artifact@v4
399399
if: env.MAIN_PYTHON_VERSION == matrix.python-version
400400
with:
401401
name: coverage-tests-remote-session-launch
402402
path: .cov
403403
retention-days: 7
404404

405405
- name: Upload coverage results (as .coverage)
406-
uses: actions/upload-artifact@v3
406+
uses: actions/upload-artifact@v4
407407
if: env.MAIN_PYTHON_VERSION == matrix.python-version
408408
with:
409409
name: coverage-file-tests-remote-session-launch
@@ -480,14 +480,14 @@ jobs:
480480
validate_output doc_pdf_output.txt
481481
482482
- name: Upload HTML Documentation
483-
uses: actions/upload-artifact@v3
483+
uses: actions/upload-artifact@v4
484484
with:
485485
name: documentation-html
486486
path: doc/_build/html
487487
retention-days: 7
488488

489489
- name: Upload PDF Documentation
490-
uses: actions/upload-artifact@v3
490+
uses: actions/upload-artifact@v4
491491
with:
492492
name: documentation-pdf
493493
path: doc/_build/latex/*.pdf
@@ -515,17 +515,17 @@ jobs:
515515
- name: Create common coverage directory
516516
run: mkdir cov-dir
517517

518-
- uses: actions/download-artifact@v3
518+
- uses: actions/download-artifact@v4
519519
with:
520520
name: coverage-file-tests-embedding
521521
path: cov-dir/embedding
522522

523-
- uses: actions/download-artifact@v3
523+
- uses: actions/download-artifact@v4
524524
with:
525525
name: coverage-file-tests-remote-session-launch
526526
path: cov-dir/launch
527527

528-
- uses: actions/download-artifact@v3
528+
- uses: actions/download-artifact@v4
529529
with:
530530
name: coverage-file-tests
531531
path: cov-dir/normal
@@ -564,7 +564,7 @@ jobs:
564564
coverage xml -o .coverage-combined/xml
565565
566566
- name: Upload combined coverage results
567-
uses: actions/upload-artifact@v3
567+
uses: actions/upload-artifact@v4
568568
with:
569569
name: combined-coverage-results
570570
path: .coverage-combined
@@ -576,7 +576,7 @@ jobs:
576576
runs-on: ubuntu-latest
577577
steps:
578578
- name: Build library source and wheel artifacts
579-
uses: ansys/actions/build-library@v4
579+
uses: ansys/actions/build-library@v5
580580
with:
581581
library-name: ${{ env.PACKAGE_NAME }}
582582
python-version: ${{ env.MAIN_PYTHON_VERSION }}
@@ -588,14 +588,14 @@ jobs:
588588
runs-on: ubuntu-latest
589589
steps:
590590
- name: Release to the public PyPI repository
591-
uses: ansys/actions/release-pypi-public@v4
591+
uses: ansys/actions/release-pypi-public@v5
592592
with:
593593
library-name: ${{ env.PACKAGE_NAME }}
594594
twine-username: "__token__"
595595
twine-token: ${{ secrets.PYPI_TOKEN }}
596596

597597
- name: Release to GitHub
598-
uses: ansys/actions/release-github@v4
598+
uses: ansys/actions/release-github@v5
599599
with:
600600
library-name: ${{ env.PACKAGE_NAME }}
601601

@@ -606,7 +606,7 @@ jobs:
606606
needs: [package]
607607
steps:
608608
- name: Deploy the latest documentation
609-
uses: ansys/actions/doc-deploy-dev@v4
609+
uses: ansys/actions/doc-deploy-dev@v5
610610
with:
611611
cname: ${{ env.DOCUMENTATION_CNAME }}
612612
token: ${{ secrets.GITHUB_TOKEN }}
@@ -618,7 +618,7 @@ jobs:
618618
needs: upload_dev_docs
619619
steps:
620620
- name: "Deploy the latest documentation index"
621-
uses: ansys/actions/doc-deploy-index@v4
621+
uses: ansys/actions/doc-deploy-index@v5
622622
with:
623623
cname: ${{ env.DOCUMENTATION_CNAME }}/version/dev
624624
index-name: pymechanical-vdev
@@ -633,7 +633,7 @@ jobs:
633633
needs: [release]
634634
steps:
635635
- name: Deploy the stable documentation
636-
uses: ansys/actions/doc-deploy-stable@v4
636+
uses: ansys/actions/doc-deploy-stable@v5
637637
with:
638638
cname: ${{ env.DOCUMENTATION_CNAME }}
639639
token: ${{ secrets.GITHUB_TOKEN }}
@@ -659,7 +659,7 @@ jobs:
659659
echo "VERSION_MEILI=$VERSION_MEILI" >> $GITHUB_ENV
660660
661661
- name: "Deploy the latest documentation index"
662-
uses: ansys/actions/doc-deploy-index@v4
662+
uses: ansys/actions/doc-deploy-index@v5
663663
with:
664664
cname: ${{ env.DOCUMENTATION_CNAME }}/version/${{ env.VERSION }}
665665
index-name: pymechanical-v${{ env.VERSION_MEILI }}

.github/workflows/codeql.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050

5151
# Initializes the CodeQL tools for scanning.
5252
- name: Initialize CodeQL
53-
uses: github/codeql-action/init@v2
53+
uses: github/codeql-action/init@v3
5454
with:
5555
languages: ${{ matrix.language }}
5656
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -64,7 +64,7 @@ jobs:
6464
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
6565
# If this step fails, then you should remove it and run the build manually (see below)
6666
- name: Autobuild
67-
uses: github/codeql-action/autobuild@v2
67+
uses: github/codeql-action/autobuild@v3
6868

6969
# ℹ️ Command-line programs to run using the OS shell.
7070
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -77,6 +77,6 @@ jobs:
7777
# ./location_of_script_within_repo/buildscript.sh
7878

7979
- name: Perform CodeQL Analysis
80-
uses: github/codeql-action/analyze@v2
80+
uses: github/codeql-action/analyze@v3
8181
with:
8282
category: "/language:${{matrix.language}}"

.pre-commit-config.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
repos:
22

33
- repo: https://github.com/psf/black
4-
rev: 23.11.0
4+
rev: 23.12.1 # IF VERSION CHANGES --> MODIFY "blacken-docs" MANUALLY AS WELL!!
55
hooks:
66
- id: black
77

88
- repo: https://github.com/adamchainz/blacken-docs
99
rev: 1.16.0
1010
hooks:
1111
- id: blacken-docs
12-
additional_dependencies: [black==23.11.0]
12+
additional_dependencies: [black==23.12.1]
1313

1414
- repo: https://github.com/pycqa/isort
15-
rev: 5.13.0
15+
rev: 5.13.2
1616
hooks:
1717
- id: isort
1818

1919
- repo: https://github.com/PyCQA/flake8
20-
rev: 6.1.0
20+
rev: 7.0.0
2121
hooks:
2222
- id: flake8
2323

@@ -27,9 +27,11 @@ repos:
2727
- id: codespell
2828

2929
- repo: https://github.com/ansys/pre-commit-hooks
30-
rev: v0.2.2
30+
rev: v0.2.6
3131
hooks:
3232
- id: add-license-headers
33+
args:
34+
- --start_year=2022
3335

3436
- repo: https://github.com/pycqa/pydocstyle
3537
rev: 6.3.0

CHANGELOG.md

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,43 @@ This document follows the conventions laid out in [Keep a CHANGELOG](https://kee
99

1010
### Added
1111

12+
- Add release note configuration ([#512](https://github.com/ansys/pymechanical/pull/512))
13+
- Add 242 to scheduled nightly run ([#519](https://github.com/ansys/pymechanical/pull/519))
14+
- Add transaction for embedding ([#542](https://github.com/ansys/pymechanical/pull/542))
15+
16+
### Fixed
17+
18+
- Fix pymeilisearch name typo and favicon ([#538](https://github.com/ansys/pymechanical/pull/538))
19+
- Update the gif to reduce the whitespace ([#540](https://github.com/ansys/pymechanical/pull/540))
20+
- Update ansys/actions to v5 ([#541](https://github.com/ansys/pymechanical/pull/541))
21+
- Fix cli find mechanical ([#550](https://github.com/ansys/pymechanical/pull/550))
22+
23+
### Changed
24+
25+
- Update LICENSE ([#548](https://github.com/ansys/pymechanical/pull/548))
26+
- Update license headers and package versions ([#556](https://github.com/ansys/pymechanical/pull/556))
27+
28+
### Dependencies
29+
30+
- Bump `github/codeql-action` from 2 to 3 ([#532](https://github.com/ansys/pymechanical/pull/532))
31+
- Update ``pre-commit`` ([#537](https://github.com/ansys/pymechanical/pull/537), [#545](https://github.com/ansys/pymechanical/pull/545), [#553](https://github.com/ansys/pymechanical/pull/553))
32+
- Bump `pyvista` from 0.43.0 to 0.43.1 ([#536](https://github.com/ansys/pymechanical/pull/536))
33+
- Bump `panel` from 1.3.4 to 1.3.6 ([#535](https://github.com/ansys/pymechanical/pull/535), [#543](https://github.com/ansys/pymechanical/pull/543))
34+
- Bump `actions/upload-artifact` and `actions/dwonload-artifact`from 3 to 4 ([#533](https://github.com/ansys/pymechanical/pull/533))
35+
- Bump `jupyter-sphinx` from 0.4.0 to 0.5.3 ([#547](https://github.com/ansys/pymechanical/pull/547))
36+
- Bump `tj-actions/changed-files` from 40 to 41 ([#544](https://github.com/ansys/pymechanical/pull/544))
37+
- Bump `pytest` from 7.4.3 to 7.4.4 ([#546](https://github.com/ansys/pymechanical/pull/546))
38+
- Bump `add-license-headers` from 0.2.2 to 0.2.4 ([#549](https://github.com/ansys/pymechanical/pull/549))
39+
- Bump `numpy` from 1.26.2 to 1.26.3 ([#551](https://github.com/ansys/pymechanical/pull/551))
40+
41+
## [0.10.5](https://github.com/ansys/pymechanical/releases/tag/v0.10.5) - December 15, 2023
42+
43+
### Added
44+
1245
- Add codeql.yml for security checks ([#423](https://github.com/ansys/pymechanical/pull/423))
1346
- add readonly flag and assertion ([#441](https://github.com/ansys/pymechanical/pull/441))
1447
- Add PyMeilisearch in documentation ([#508](https://github.com/ansys/pymechanical/pull/508))
1548
- Add cheetsheat and improve example visibility ([#506](https://github.com/ansys/pymechanical/pull/506))
16-
- Add 242 to scheduled nightly run ([#519](https://github.com/ansys/pymechanical/pull/519))
1749
- Add mechanical-env to workflow ([#521](https://github.com/ansys/pymechanical/pull/521))
1850
- Add doc pdf build to workflow ([#529](https://github.com/ansys/pymechanical/pull/529))
1951

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2023 ANSYS, Inc. All rights reserved.
3+
Copyright (c) 2024 ANSYS, Inc. All rights reserved.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

doc/source/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import os
1212
import warnings
1313

14-
from ansys_sphinx_theme import get_version_match, pyansys_logo_black
14+
from ansys_sphinx_theme import ansys_favicon, get_version_match, pyansys_logo_black
1515
from sphinx_gallery.sorting import FileNameSortKey
1616

1717
import ansys.mechanical.core as pymechanical
@@ -99,7 +99,7 @@
9999
}
100100

101101
# Favicon
102-
html_favicon = "favicon.png"
102+
html_favicon = ansys_favicon
103103

104104
# notfound.extension
105105
notfound_template = "404.rst"
@@ -206,7 +206,7 @@
206206
"use_meilisearch": {
207207
"api_key": os.getenv("MEILISEARCH_PUBLIC_API_KEY", ""),
208208
"index_uids": {
209-
f"pymemchanical-v{get_version_match(version).replace('.', '-')}": "PyMechanical",
209+
f"pymechanical-v{get_version_match(version).replace('.', '-')}": "PyMechanical",
210210
},
211211
},
212212
}

doc/source/favicon.png

-6.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)