-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into SI_example_notebook
- Loading branch information
Showing
53 changed files
with
2,008 additions
and
552 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,9 @@ on: | |
- release-* | ||
workflow_dispatch: | ||
|
||
env: | ||
DOCUMENTATION_CNAME: 'edb.docs.pyansys.com' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
@@ -18,17 +21,9 @@ jobs: | |
name: Code style | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
- uses: ansys/actions/code-style@v4 | ||
with: | ||
python-version: 3.7 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade -r requirements/requirements_tox.txt | ||
- name: Test with tox | ||
run: tox -e style | ||
|
||
|
||
tests: | ||
name: Tests and coverage | ||
|
@@ -53,62 +48,41 @@ jobs: | |
# Only the tox environment specified in the tox.ini gh-actions is run | ||
run: tox -e test -- --ignore=tests/e2e | ||
|
||
|
||
docs: | ||
doc-style: | ||
name: Documentation | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Check documentation style" | ||
uses: ansys/actions/doc-style@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# TODO: convert to ansys/actions/doc-build | ||
doc-build: | ||
name: Build documentation | ||
runs-on: ubuntu-latest | ||
needs: [doc-style] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade -r requirements/requirements_tox.txt | ||
- name: Generate the documentation with tox | ||
run: tox -e doc | ||
|
||
- name: Zip documentation | ||
run: | | ||
cd .tox/doc_out | ||
zip -r pyedb_documentation.zip * | ||
- name: Upload HTML Documentation | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: HTML-Documentation | ||
path: .tox/doc_out/pyedb_documentation.zip | ||
path: .tox/doc_out | ||
retention-days: 7 | ||
|
||
- name: Get Bot Application Token | ||
if: github.event_name == 'push' && (github.ref == 'refs/heads/develop' || contains(github.ref, 'refs/tags')) | ||
id: get_workflow_token | ||
uses: peter-murray/workflow-application-token-action@v1 | ||
with: | ||
application_id: ${{ secrets.BOT_APPLICATION_ID }} | ||
application_private_key: ${{ secrets.BOT_APPLICATION_PRIVATE_KEY }} | ||
|
||
- name: Deploy dev docs | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/develop' | ||
uses: JamesIves/[email protected] | ||
with: | ||
repository-name: pyansys/pyedb-dev-docs | ||
token: ${{ steps.get_workflow_token.outputs.token }} | ||
branch: gh-pages | ||
folder: .tox/doc_out | ||
clean: true | ||
|
||
- name: Deploy release docs | ||
if: github.event_name == 'push' && contains(github.ref, 'refs/tags') | ||
uses: JamesIves/[email protected] | ||
with: | ||
repository-name: pyansys/pyedb-docs | ||
token: ${{ steps.get_workflow_token.outputs.token }} | ||
branch: gh-pages | ||
folder: .tox/doc_out | ||
clean: true | ||
|
||
build: | ||
name: Build library | ||
runs-on: ubuntu-latest | ||
|
@@ -149,7 +123,7 @@ jobs: | |
|
||
release: | ||
if: github.event_name == 'push' && contains(github.ref, 'refs/tags') | ||
needs: [build, tests, docs] | ||
needs: [build, tests, doc-build] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Python | ||
|
@@ -185,7 +159,7 @@ jobs: | |
job: ${{ toJson(job) }} | ||
steps: ${{ toJson(steps) }} | ||
overwrite: "{ | ||
title: `New release has been published at https://github.com/pyansys/pyedb/releases`, | ||
title: `New release has been published at https://github.com/ansys/pyedb/releases`, | ||
}" | ||
|
||
- name: Notify Failure | ||
|
@@ -199,3 +173,30 @@ jobs: | |
overwrite: "{ | ||
title: `Release FAILED!`, | ||
}" | ||
|
||
doc-deploy-dev: | ||
name: "Deploy development documentation" | ||
# Deploy development only when merging or pushing to the 'main' branch | ||
if: github.event_name == 'push' && !contains(github.ref, 'refs/tags') | ||
runs-on: ubuntu-latest | ||
needs: [doc-build, build] | ||
steps: | ||
- uses: ansys/actions/doc-deploy-dev@v4 | ||
with: | ||
cname: ${{ env.DOCUMENTATION_CNAME }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
doc-artifact-name: HTML-Documentation | ||
|
||
doc-deploy-stable: | ||
name: "Deploy stable documentation" | ||
# Deploy release documentation when creating a new tag | ||
if: github.event_name == 'push' && contains(github.ref, 'refs/tags') | ||
runs-on: ubuntu-latest | ||
needs: release | ||
steps: | ||
- uses: ansys/actions/doc-deploy-stable@v4 | ||
with: | ||
cname: ${{ env.DOCUMENTATION_CNAME }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
doc-artifact-name: HTML-Documentation | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Core settings | ||
# ============= | ||
|
||
# Location of our `styles` | ||
StylesPath = "styles" | ||
|
||
# The options are `suggestion`, `warning`, or `error` (defaults to “warning”). | ||
MinAlertLevel = warning | ||
|
||
# By default, `code` and `tt` are ignored. | ||
IgnoredScopes = code, tt | ||
|
||
# By default, `script`, `style`, `pre`, and `figure` are ignored. | ||
SkippedScopes = script, style, pre, figure | ||
|
||
# WordTemplate specifies what Vale will consider to be an individual word. | ||
WordTemplate = \b(?:%s)\b | ||
|
||
# List of Packages to be used for our guidelines | ||
Packages = Google | ||
|
||
# Define the Ansys vocabulary | ||
Vocab = Ansys | ||
|
||
[*.{md,rst}] | ||
|
||
# Apply the following styles | ||
BasedOnStyles = Vale, Google |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
* | ||
!Vocab | ||
!Vocab/** | ||
!.gitignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Ansys | ||
Enums | ||
PyAnsys | ||
PyEDB | ||
pyedb | ||
EDB |
Empty file.
Oops, something went wrong.