-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into release/0.4
- Loading branch information
Showing
56 changed files
with
2,270 additions
and
1,531 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 |
---|---|---|
|
@@ -14,12 +14,12 @@ on: | |
workflow_dispatch: | ||
inputs: | ||
logLevel: | ||
description: 'Log level' | ||
description: 'Log level' | ||
required: true | ||
default: 'warning' | ||
tags: | ||
description: 'Test scenario tags' | ||
description: 'Test scenario tags' | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
|
@@ -32,6 +32,15 @@ jobs: | |
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
# used for documentation deployment | ||
- name: Get Bot Application Token | ||
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: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
|
@@ -51,44 +60,41 @@ jobs: | |
pip install -r requirements.txt | ||
pip install -r requirements_docs.txt | ||
Copy-Item -Path "C:\actions-runner\opengl32.dll" -Destination "testenv\Lib\site-packages\vtkmodules" -Force | ||
#if: startsWith(github.event.ref, 'refs/heads/main') != true | ||
- name: 'Create Documentations' | ||
|
||
- name: 'Create Documentations' | ||
run: | | ||
testenv\Scripts\Activate.ps1 | ||
sphinx-build -j auto -b html -a doc/source doc/_build/html | ||
- name: ' Deploy on aedtdocs.pyansys.com' | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | ||
working-directory: doc/_build/html | ||
run: | | ||
git init | ||
git checkout -b master | ||
git config --local user.name "maxcapodi78" | ||
git config --local user.email "[email protected]" | ||
New-Item -ItemType file .nojekyll | ||
New-Item -ItemType file CNAME | ||
Add-Content CNAME "aedtdocs.pyansys.com" | ||
git add . | ||
git commit -m "Documentation generated by PyAedt Build" | ||
git remote add origin https://${{ secrets.PYAEDT_DOCS }}@github.com/pyansys/PyAEDT-docs | ||
git push -u origin master --force | ||
- name: Upload Documentation | ||
id: upload | ||
uses: actions/[email protected] | ||
with: | ||
name: Documentation | ||
path: doc/_build/html | ||
retention-days: 7 | ||
|
||
#- name: Upload Documentation | ||
# uses: actions/[email protected] | ||
# with: | ||
# name: Documentation | ||
# path: doc/_build/html | ||
# retention-days: 7 | ||
- name: Deploy | ||
continue-on-error: true | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | ||
uses: JamesIves/[email protected] | ||
with: | ||
repository-name: pyansys/pyaedt-docs | ||
branch: master | ||
folder: doc/_build/html/ | ||
token: ${{ steps.get_workflow_token.outputs.token }} | ||
clean: true | ||
|
||
#- name: Deploy | ||
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | ||
# uses: JamesIves/[email protected] | ||
# with: | ||
# repository-name: pyansys/pyaedt-docs | ||
# branch: master | ||
# folder: doc/_build/html/ | ||
# token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }} | ||
# clean: true | ||
# Retry the deployment in case some network issue prevented git to push | ||
# the modifications properly. It happened in the past. | ||
- name: Deploy Second try | ||
if: steps.deploy.outcome!='success' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | ||
uses: JamesIves/[email protected] | ||
with: | ||
repository-name: pyansys/pyaedt-docs | ||
branch: master | ||
folder: doc/_build/html/ | ||
token: ${{ steps.get_workflow_token.outputs.token }} | ||
clean: true |
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 |
---|---|---|
|
@@ -12,6 +12,14 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
# used for documentation deployment | ||
- name: Get Bot Application Token | ||
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: Setup Python | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -42,45 +50,45 @@ jobs: | |
uses: JamesIves/[email protected] | ||
with: | ||
repository-name: pyansys/pyaedt-dev-docs | ||
branch: gh-pages | ||
branch: master | ||
folder: doc/_build/html/ | ||
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }} | ||
token: ${{ steps.get_workflow_token.outputs.token }} | ||
clean: true | ||
|
||
docstring_testing: | ||
runs-on: Windows | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: 'Create virtual env' | ||
run: | | ||
python -m venv testenv | ||
testenv\Scripts\Activate.ps1 | ||
python -m pip install pip -U | ||
python -m pip install wheel setuptools -U | ||
python -c "import sys; print(sys.executable)" | ||
- name: 'Install pyaedt' | ||
run: | | ||
testenv\Scripts\Activate.ps1 | ||
pip install . --use-feature=in-tree-build | ||
cd _unittest | ||
python -c "import pyaedt; print('Imported pyaedt')" | ||
- name: Install testing requirements | ||
run: | | ||
testenv\Scripts\Activate.ps1 | ||
pip install -r requirements_test.txt | ||
pip install pytest-azurepipelines | ||
- name: Docstring testing | ||
run: | | ||
testenv\Scripts\Activate.ps1 | ||
pytest -v pyaedt/desktop.py pyaedt/icepak.py | ||
pytest -v pyaedt/desktop.py pyaedt/hfss.py | ||
# docstring_testing: | ||
# runs-on: Windows | ||
|
||
# steps: | ||
# - uses: actions/checkout@v2 | ||
|
||
# - name: Setup Python | ||
# uses: actions/setup-python@v2 | ||
# with: | ||
# python-version: 3.8 | ||
|
||
# - name: 'Create virtual env' | ||
# run: | | ||
# python -m venv testenv | ||
# testenv\Scripts\Activate.ps1 | ||
# python -m pip install pip -U | ||
# python -m pip install wheel setuptools -U | ||
# python -c "import sys; print(sys.executable)" | ||
|
||
# - name: 'Install pyaedt' | ||
# run: | | ||
# testenv\Scripts\Activate.ps1 | ||
# pip install . --use-feature=in-tree-build | ||
# cd _unittest | ||
# python -c "import pyaedt; print('Imported pyaedt')" | ||
|
||
# - name: Install testing requirements | ||
# run: | | ||
# testenv\Scripts\Activate.ps1 | ||
# pip install -r requirements_test.txt | ||
# pip install pytest-azurepipelines | ||
|
||
# - name: Docstring testing | ||
# run: | | ||
# testenv\Scripts\Activate.ps1 | ||
# pytest -v pyaedt/desktop.py pyaedt/icepak.py | ||
# pytest -v pyaedt/desktop.py pyaedt/hfss.py |
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
Oops, something went wrong.