Skip to content

Build(deps): Bump pyvista from 0.43.3 to 0.44.0 in /requirements #589

Build(deps): Bump pyvista from 0.43.3 to 0.44.0 in /requirements

Build(deps): Bump pyvista from 0.43.3 to 0.44.0 in /requirements #589

Workflow file for this run

name: Github CI-CD
on:
pull_request:
workflow_dispatch:
push:
tags:
- "*"
branches:
- "main"
schedule: # UTC at 0300
- cron: "0 3 * * *"
env:
MAIN_PYTHON_VERSION: '3.10'
PACKAGE_NAME: 'pyaedt-examples'
ANSYSLMD_LICENSE_FILE: ${{ format('1055@{0}', secrets.LICENSE_SERVER) }}
ON_CI: True
PYAEDT_NON_GRAPHICAL: '1'
PYAEDT_DOC_GENERATION: '1'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
doc-style:
name: Documentation style
runs-on: ubuntu-latest
steps:
- uses: ansys/actions/doc-style@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
# =================================================================================================
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv RUNNING ON SELF-HOSTED RUNNER vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
# =================================================================================================
doc-build:
name: Build documentation
runs-on: [self-hosted, Windows, pyaedt-examples]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ env.MAIN_PYTHON_VERSION }}
uses: actions/setup-python@v4
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}
use-cache: false
- name: Create virtual environment
run: |
python -m venv .venv
.venv\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 project and documentation dependencies
run: |
.venv\Scripts\Activate.ps1
pip install -r requirements/requirements_doc.txt
# Use environment variable to keep the doctree and avoid redundant build for PDF pages
- name: Create HTML documentation
env:
SPHINXBUILD_KEEP_DOCTREEDIR: "1"
run: |
.venv\Scripts\Activate.ps1
. .\doc\make.bat html
- name: Upload HTML documentation artifact
uses: actions/upload-artifact@v4
with:
name: documentation-html
path: doc/_build/html
retention-days: 7
# Use environment variable to remove the doctree after the build of PDF pages
# Keeping doctree could cause an issue, see https://github.com/ansys/pyaedt/pull/3844/files
- name: Create PDF documentation
env:
SPHINXBUILD_KEEP_DOCTREEDIR: "0"
run: |
.venv\Scripts\Activate.ps1
. .\doc\make.bat pdf
- name: Upload PDF documentation artifact
uses: actions/upload-artifact@v4
with:
name: documentation-pdf
path: doc/_build/latex
retention-days: 7
release:
if: github.event_name == 'refs/heads/main' && !contains(github.ref, 'refs/tags')
needs: [doc-build, doc-style]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
- name: Display structure of downloaded files
run: ls -R
- name: Zip HTML documentation
uses: vimtor/action-zip@v1.2
with:
files: documentation-html
dest: documentation-html.zip
- name: Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
files: |
./documentation-html.zip
./documentation-pdf/*.pdf