Skip to content

fix: add table cards for part composite #2480

fix: add table cards for part composite

fix: add table cards for part composite #2480

Workflow file for this run

name: CI
on:
pull_request:
types: [opened, synchronize, reopened, labeled, unlabeled]
push:
branches:
- main
permissions:
contents: read # Needed to checkout code
packages: read # Needed for pulling container images from GHCR
env:
MAIN_PYTHON_VERSION: '3.14'
PACKAGE_NAME: 'ansys-dyna-core'
PACKAGE_NAMESPACE: 'ansys.dyna.core'
DOCUMENTATION_CNAME: "dyna.docs.pyansys.com"
PYDYNA_RUN_CONTAINER: 'ghcr.io/ansys/pydyna-run:dev'
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
labeler:
name: "Labels"
permissions:
contents: read # Read access to modified files in pull-request
pull-requests: write # Write access to add or remove new tags
runs-on: ubuntu-latest
steps:
- name: "Checkout repository"
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: "Update labels"
uses: micnncim/action-label-syncer@3abd5ab72fda571e69fffd97bd4e0033dd5f495c # v1.3.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: "Label pull-request"
uses: actions/labeler@f27b608878404679385c85cfa523b85ccb86e213 # v6.1.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
changelog-fragment:
name: "Create changelog fragment"
needs: [labeler]
permissions:
contents: write # Required to commit changelog fragment files
pull-requests: write # Required to update pull request with changelog fragment
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: ansys/actions/doc-changelog@a5b0351dc277d68c2dc1beca2d2674c7dfa4fc55 # v10.3.3
with:
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
use-conventional-commits: true
bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
pr-name:
if: github.event_name == 'pull_request'
name: Check the name of the PR
runs-on: ubuntu-latest
steps:
- name: Check commit name
uses: ansys/actions/check-pr-title@a5b0351dc277d68c2dc1beca2d2674c7dfa4fc55 # v10.3.3
with:
token: ${{ secrets.GITHUB_TOKEN }}
vulnerabilities:
name: Vulnerabilities
runs-on: ubuntu-latest
steps:
- uses: ansys/actions/check-vulnerabilities@a5b0351dc277d68c2dc1beca2d2674c7dfa4fc55 # v10.3.3
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}
python-package-name: ${{ env.PACKAGE_NAME }}
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
dev-mode: ${{ github.ref != 'refs/heads/main' }}
code-style:
name: "Code style"
runs-on: ubuntu-latest
needs: [vulnerabilities]
steps:
- uses: ansys/actions/code-style@a5b0351dc277d68c2dc1beca2d2674c7dfa4fc55 # v10.3.3
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}
actions-security:
name: Actions Security
runs-on: ubuntu-latest
needs: [vulnerabilities]
steps:
- uses: ansys/actions/check-actions-security@a5b0351dc277d68c2dc1beca2d2674c7dfa4fc55 # v10.3.3
with:
generate-summary: true
token: ${{ secrets.GITHUB_TOKEN }}
auditing-level: 'high'
codegen-testing:
name: Build and Testing for codegen
runs-on: ubuntu-latest
needs: [vulnerabilities]
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- uses: ./.github/actions/test-codegen
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}
doc-style:
name: "Documentation style"
runs-on: ubuntu-latest
steps:
- name: PyAnsys documentation style checks
uses: ansys/actions/doc-style@a5b0351dc277d68c2dc1beca2d2674c7dfa4fc55 # v10.3.3
with:
token: ${{ secrets.GITHUB_TOKEN }}
doc:
name: "Documentation build"
runs-on: ubuntu-latest
needs: [doc-style]
if: |
!contains(github.event.pull_request.labels.*.name, 'docs:skip')
steps:
- name: "Checkout project"
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: true
- name: "Build documentation"
uses: ./.github/actions/doc-build
with:
pydyna-run-container: ${{ env.PYDYNA_RUN_CONTAINER }}
python-version: ${{ env.MAIN_PYTHON_VERSION }}
github-token: ${{ secrets.GITHUB_TOKEN }}
license-server: ${{ secrets.LICENSE_SERVER }}
bot-token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
github-actor: ${{ github.actor }}
use_cache_examples: ${{ github.ref != 'refs/heads/main' }} # Use cache for PRs but not for main branch to avoid cache issues
build-examples: ${{ !contains(github.event.pull_request.labels.*.name, 'docs:example:skip') }}
build-api: ${{ !contains(github.event.pull_request.labels.*.name, 'docs:api:skip') }}
skip-pdf-build: ${{ contains(github.event.pull_request.labels.*.name, 'docs:pdf:skip') }}
run-tests:
name: Test the "run" subpackage
runs-on: ubuntu-latest
if: |
!contains(github.event.pull_request.labels.*.name, 'test:run:skip')
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- uses: ./.github/actions/unit-test
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}
github-token: ${{ secrets.GITHUB_TOKEN }}
pydyna-run-container: ${{ env.PYDYNA_RUN_CONTAINER }}
pytest-markers: run
license-server: ${{ secrets.LICENSE_SERVER }}
coverage-file: run
unit-tests:
name: "Unit testing for matrix"
runs-on: ${{ matrix.os }}
if: |
!contains(github.event.pull_request.labels.*.name, 'tests:skip')
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ['3.10', '3.14'] # Min and max versions only for PR/push; full matrix runs nightly
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Run tests
uses: ./.github/actions/unit-test
with:
python-version: ${{ matrix.python-version }}
github-token: ${{ secrets.GITHUB_TOKEN }}
coverage-file: unittests
pytest-markers: "not codegen and not run"
build-library:
name: "Build library"
needs: [doc, run-tests, unit-tests]
runs-on: ubuntu-latest
steps:
- uses: ansys/actions/build-library@a5b0351dc277d68c2dc1beca2d2674c7dfa4fc55 # v10.3.3
with:
library-name: ${{ env.PACKAGE_NAME }}
python-version: ${{ env.MAIN_PYTHON_VERSION }}