Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 13 additions & 37 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
LIBRARY_NAME: 'ansys-fluent-visualization'
PYFLUENT_TIMEOUT_FORCE_EXIT: 5
PYFLUENT_LAUNCH_CONTAINER: 1
DOC_DEPLOYMENT_IMAGE_TAG: v25.2.0

jobs:

Expand All @@ -35,15 +36,15 @@
runs-on: ubuntu-latest
steps:
- name: Running Vale
uses: ansys/actions/doc-style@v10
uses: ansys/actions/doc-style@21c9de9bee9692173780696d4a39964f20b9cfa3 # v10.1.5
with:
token: ${{ secrets.GITHUB_TOKEN }}

check-vulnerabilities:
name: "Check library vulnerabilities"
runs-on: ubuntu-latest
steps:
- uses: ansys/actions/check-vulnerabilities@main
- uses: ansys/actions/check-vulnerabilities@21c9de9bee9692173780696d4a39964f20b9cfa3 # v10.1.5
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
Expand All @@ -55,7 +56,7 @@
name: "Actions Security"
runs-on: ubuntu-latest
steps:
- uses: ansys/actions/check-actions-security@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4
- uses: ansys/actions/check-actions-security@21c9de9bee9692173780696d4a39964f20b9cfa3 # v10.1.5
with:
generate-summary: true
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -132,7 +133,6 @@
contents: read
packages: read
env:
DOC_DEPLOYMENT_IMAGE_TAG: v25.2.0
DOCUMENTATION_CNAME: "visualization.fluent.docs.pyansys.com"
XDG_RUNTIME_DIR: /tmp/runtime-${{ github.run_id }}

Expand Down Expand Up @@ -222,56 +222,32 @@

deploy-docs-release:
name: "Upload release documentation"
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
runs-on: ubuntu-latest
permissions:
contents: write
env:
DOC_DEPLOYMENT_IMAGE_TAG: v25.2.0
needs: [ docs ]
needs: [docs]
steps:
- name: "Deploy the stable documentation"
uses: ansys/actions/doc-deploy-stable@v10.1
uses: ansys/actions/doc-deploy-stable@10

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'GitHub CI' step
Uses Step
uses 'ansys/actions/doc-deploy-stable' with ref '10', not a pinned commit hash
with:
doc-artifact-name: "HTML-Documentation-tag-${{ env.DOC_DEPLOYMENT_IMAGE_TAG }}"
cname: ${{ env.DOCUMENTATION_CNAME }}
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }}

build:
name: Build library
name: "Package library"
needs: [tests, docs]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false

- name: Set up Python
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
- name: "Build library source and wheel artifacts"
uses: ansys/actions/build-library@21c9de9bee9692173780696d4a39964f20b9cfa3 # v10.1.5
with:
library-name: ${{ env.LIBRARY_NAME}}
python-version: ${{ env.MAIN_PYTHON_VERSION }}

- name: Add version information
run: make version-info

- name: Install dependencies and build the library
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements/requirements_build.txt
python -m build
python -m twine check dist/*

- name: Upload package
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: ${{ env.LIBRARY_NAME }}-artifacts
path: |
dist/*.whl
dist/*.tar.gz
retention-days: 7

release:
name: "Release project to private, public PyPI and GitHub"
needs: build
Expand All @@ -296,7 +272,7 @@
run: ls -R

- name: "Release to the private PyPI repository"
uses: ansys/actions/release-pypi-private@v10
uses: ansys/actions/release-pypi-private@21c9de9bee9692173780696d4a39964f20b9cfa3 # v10.1.5
with:
library-name: ${{ env.LIBRARY_NAME }}
twine-username: "__token__"
Expand Down