-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploying to gh-pages from @ c8bf551 🚀
- Loading branch information
0 parents
commit 0b2fd61
Showing
199 changed files
with
104,813 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file records the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: 19f4c458daf8a4624f35ecf4eac39986 | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
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,15 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "pip" # See documentation for possible values | ||
directory: "/requirements" # Location of package manifests | ||
insecure-external-code-execution: allow | ||
schedule: | ||
interval: "weekly" | ||
labels: | ||
- "maintenance" | ||
- "dependencies" | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
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,9 @@ | ||
documentation: | ||
- doc/source/**/* | ||
maintenance: | ||
- .github/**/* | ||
- .flake8 | ||
- pyproject.toml | ||
- .codespellrc | ||
dependencies: | ||
- requirements/* |
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,27 @@ | ||
- name: bug | ||
description: Something isn't working | ||
color: d42a34 | ||
|
||
- name: dependencies | ||
description: Related with project dependencies | ||
color: ffc0cb | ||
|
||
- name: documentation | ||
description: Improvements or additions to documentation | ||
color: 0677ba | ||
|
||
- name: enhancement | ||
description: New features or code improvements | ||
color: FFD827 | ||
|
||
- name: good first issue | ||
description: Easy to solve for newcomers | ||
color: 62ca50 | ||
|
||
- name: maintenance | ||
description: Package and maintenance related | ||
color: f78c37 | ||
|
||
- name: release | ||
description: Anything related to an incoming release | ||
color: ffffff |
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,139 @@ | ||
name: CI | ||
|
||
on: | ||
workflow_dispatch: | ||
# schedule: # UTC at 0300 | ||
# - cron: "0 3 * * *" | ||
pull_request: | ||
push: | ||
tags: | ||
- "*" | ||
branches: | ||
- main | ||
|
||
env: | ||
MAIN_PYTHON_VERSION: '3.10' | ||
PYMECHANICAL_PORT: 10000 # default won't work on GitHub runners | ||
PYMECHANICAL_START_INSTANCE: FALSE | ||
DOCKER_PACKAGE: ghcr.io/ansys/pymechanical/mechanical | ||
DOCKER_IMAGE_VERSION: v23.2.0 | ||
DOCKER_MECH_CONTAINER_NAME: mechanical | ||
PACKAGE_NAME: ansys-mechanical-core | ||
PACKAGE_NAMESPACE: ansys.mechanical.core | ||
RESET_EXAMPLES_CACHE: 0 | ||
RESET_DOC_BUILD_CACHE: 0 | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
packages: read | ||
|
||
jobs: | ||
|
||
style: | ||
name: Code style | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: PyAnsys code style checks | ||
uses: ansys/actions/code-style@v4 | ||
with: | ||
python-version: ${{ env.MAIN_PYTHON_VERSION }} | ||
use-python-cache: false | ||
|
||
doc-style: | ||
name: Documentation Style Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: PyAnsys documentation style checks | ||
uses: ansys/actions/doc-style@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
docs: | ||
name: Documentation | ||
needs: [style, doc-style] | ||
runs-on: ubuntu-latest-8-cores | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ env.MAIN_PYTHON_VERSION }} | ||
|
||
- name: Install system dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y texlive-latex-extra latexmk nodejs npm graphviz | ||
npm install -g @mermaid-js/mermaid-cli | ||
- name: Install Python dependencies | ||
run: | | ||
python -m pip install --upgrade pip tox | ||
- name: Login in Github Container registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Pull, launch, and validate Mechanical service | ||
env: | ||
LICENSE_SERVER: ${{ secrets.LICENSE_SERVER }} | ||
MECHANICAL_IMAGE: ${{ env.DOCKER_PACKAGE }}:${{ env.DOCKER_IMAGE_VERSION }} | ||
run: | | ||
echo CPU info | ||
lscpu | ||
docker pull ${{ env.MECHANICAL_IMAGE }} | ||
docker run --restart always --name ${{ env.DOCKER_MECH_CONTAINER_NAME }} -e ANSYSLMD_LICENSE_FILE=1055@${{ env.LICENSE_SERVER }} -p ${{ env.PYMECHANICAL_PORT }}:10000 ${{ env.MECHANICAL_IMAGE }} > log.txt & | ||
grep -q 'WB Initialize Done' <(timeout 60 tail -f log.txt) | ||
- name: Build HTML documentation | ||
run: tox -e doc | ||
|
||
- name: Build PDF Documentation | ||
run: | | ||
sudo apt update | ||
sudo apt-get install -y texlive-latex-extra latexmk | ||
python -m pip install -r requirements/requirements_doc.txt | ||
make -C doc pdf | ||
- name: Upload HTML documentation | ||
uses: actions/[email protected] | ||
with: | ||
name: HTML-Documentation | ||
path: .tox/doc_out_html/ | ||
retention-days: 7 | ||
|
||
- name: Upload PDF Documentation | ||
uses: actions/[email protected] | ||
with: | ||
name: PDF-Documentation | ||
path: doc/build/latex/*.pdf | ||
retention-days: 7 | ||
|
||
- name: Get Mechanical container logs | ||
if: always() | ||
run: docker logs ${{ env.DOCKER_MECH_CONTAINER_NAME }} > mechanical_documentation_log.txt 2>&1 | ||
|
||
- name: Upload container logs | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: mechanical_documentation_log | ||
path: mechanical_documentation_log.txt | ||
retention-days: 7 | ||
|
||
# - name: Deploy to gh-pages | ||
# if: github.event_name == 'push' | ||
# uses: JamesIves/[email protected] | ||
# with: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# BRANCH: gh-pages | ||
# FOLDER: .tox/doc_out_html/ | ||
# CLEAN: true | ||
# SINGLE_COMMIT: 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 |
---|---|---|
@@ -0,0 +1,85 @@ | ||
name: Labeler | ||
on: | ||
pull_request: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- '../labels.yml' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
|
||
label-syncer: | ||
name: Syncer | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: micnncim/action-label-syncer@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
labeler: | ||
name: Set labels | ||
needs: [label-syncer] | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
# Label based on modified files | ||
- name: Label based on changed files | ||
uses: actions/labeler@v4 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
sync-labels: '' | ||
|
||
# Label based on branch name | ||
- uses: actions-ecosystem/action-add-labels@v1 | ||
if: | | ||
startsWith(github.event.pull_request.head.ref, 'doc') || | ||
startsWith(github.event.pull_request.head.ref, 'docs') | ||
with: | ||
labels: documentation | ||
|
||
- uses: actions-ecosystem/action-add-labels@v1 | ||
if: | | ||
startsWith(github.event.pull_request.head.ref, 'maint') || | ||
startsWith(github.event.pull_request.head.ref, 'no-ci') || | ||
startsWith(github.event.pull_request.head.ref, 'ci') | ||
with: | ||
labels: maintenance | ||
|
||
- uses: actions-ecosystem/action-add-labels@v1 | ||
if: startsWith(github.event.pull_request.head.ref, 'feat') | ||
with: | ||
labels: | | ||
enhancement | ||
- uses: actions-ecosystem/action-add-labels@v1 | ||
if: | | ||
startsWith(github.event.pull_request.head.ref, 'fix') || | ||
startsWith(github.event.pull_request.head.ref, 'patch') | ||
with: | ||
labels: bug | ||
|
||
commenter: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Suggest to add labels | ||
uses: peter-evans/create-or-update-comment@v3 | ||
# Execute only when no labels have been applied to the pull request | ||
if: toJSON(github.event.pull_request.labels.*.name) == '{}' | ||
with: | ||
issue-number: ${{ github.event.pull_request.number }} | ||
body: | | ||
Please add one of the following labels to add this contribution to the Release Notes :point_down: | ||
- [bug](https://github.com/ansys/pymechanical-examples/pulls?q=label%3Abug+) | ||
- [documentation](https://github.com/ansys/pymechanical-examples/pulls?q=label%3Adocumentation+) | ||
- [enhancement](https://github.com/ansys/pymechanical-examples/pulls?q=label%3Aenhancement+) | ||
- [good first issue](https://github.com/ansys/pymechanical-examples/pulls?q=label%3Agood+first+issue) | ||
- [maintenance](https://github.com/ansys/pymechanical-examples/pulls?q=label%3Amaintenance+) | ||
- [release](https://github.com/ansys/pymechanical-examples/pulls?q=label%3Arelease+) |
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 @@ | ||
|
Oops, something went wrong.