Skip to content

feat: add Docker Compose files for testing PyMAPDL #8899

feat: add Docker Compose files for testing PyMAPDL

feat: add Docker Compose files for testing PyMAPDL #8899

Workflow file for this run

name: "Pull Request Labeler"
on:
pull_request:
# opened, reopened, and synchronize are default for pull_request
# edited - when PR title or body is changed
# labeled - when labels are added to PR
types: [opened, reopened, synchronize, edited, labeled]
push:
branches: [ main ]
paths:
- '../labels.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: {}
jobs:
label-syncer:
# Sync the labels name, colours with the file ``labels.yml``
name: Syncer
runs-on: ubuntu-latest
permissions:
issues: write # Needed to sync label names and colors
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2
with:
persist-credentials: false
- uses: micnncim/action-label-syncer@3abd5ab72fda571e69fffd97bd4e0033dd5f495c #v1.3.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
labeler:
name: Set labels
needs: [label-syncer]
permissions:
contents: read # Needed to read labeler configuration
pull-requests: write # Needed to add labels to pull requests
runs-on: ubuntu-latest
steps:
# Label based on modified files
- name: Label based on changed files
uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b #v6.0.1
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true
# Label based on branch name
- uses: actions-ecosystem/action-add-labels@18f1af5e3544586314bbe15c0273249c770b2daf #v1.1.3
if: |
startsWith(github.event.pull_request.title, 'fix') ||
startsWith(github.event.pull_request.title, 'bug') ||
startsWith(github.event.pull_request.title, 'patch')
with:
github_token: ${{ secrets.GITHUB_TOKEN}}
labels: bug
- uses: actions-ecosystem/action-add-labels@18f1af5e3544586314bbe15c0273249c770b2daf #v1.1.3
if: |
startsWith(github.event.pull_request.title, 'feat')
with:
github_token: ${{ secrets.GITHUB_TOKEN}}
labels: new feature
- uses: actions-ecosystem/action-add-labels@18f1af5e3544586314bbe15c0273249c770b2daf #v1.1.3
if: |
startsWith(github.event.pull_request.title, 'style') ||
startsWith(github.event.pull_request.title, 'refactor') ||
startsWith(github.event.pull_request.title, 'perf') ||
startsWith(github.event.pull_request.title, 'test') ||
startsWith(github.event.pull_request.title, 'chore')
with:
github_token: ${{ secrets.GITHUB_TOKEN}}
labels: enhancement
- uses: actions-ecosystem/action-add-labels@18f1af5e3544586314bbe15c0273249c770b2daf #v1.1.3
if: |
startsWith(github.event.pull_request.title, 'build') ||
startsWith(github.event.pull_request.title, 'revert') ||
startsWith(github.event.pull_request.title, 'maint')
with:
github_token: ${{ secrets.GITHUB_TOKEN}}
labels: maintenance
- uses: actions-ecosystem/action-add-labels@18f1af5e3544586314bbe15c0273249c770b2daf #v1.1.3
if: |
startsWith(github.event.pull_request.title, 'doc') ||
startsWith(github.event.pull_request.title, 'docs')
with:
github_token: ${{ secrets.GITHUB_TOKEN}}
labels: documentation
- uses: actions-ecosystem/action-add-labels@18f1af5e3544586314bbe15c0273249c770b2daf #v1.1.3
if: |
startsWith(github.event.pull_request.title, 'docker') ||
startsWith(github.event.pull_request.title, 'no-ci') ||
startsWith(github.event.pull_request.title, 'ci')
with:
github_token: ${{ secrets.GITHUB_TOKEN}}
labels: CI/CD
commenter:
name: Comment to suggest adding labels if none have been added
runs-on: ubuntu-latest
needs: [labeler]
permissions:
pull-requests: write # Needed to create comments on pull requests
steps:
- name: Suggest to add labels
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 #v5.0.0
# Execute only when no labels have been applied to the pull request
if: toJSON(github.event.pull_request.labels.*.name) == '{}' # Empty labels
with:
token: ${{ secrets.GITHUB_TOKEN }}
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/pymapdl/pulls?q=label%3Abug+)
- [new feature](https://github.com/ansys/pymapdl/pulls?q=label%3A"new%20feature"+)
- [enhancement](https://github.com/ansys/pymapdl/pulls?q=label%3Aenhancement+)
- [documentation](https://github.com/ansys/pymapdl/pulls?q=label%3Adocumentation+)
- [examples](https://github.com/ansys/pymapdl/pulls?q=label%3Aexamples+)
- [maintenance](https://github.com/ansys/pymapdl/pulls?q=label%3Amaintenance+)
- [CI/CD](https://github.com/ansys/pymapdl/pulls?q=label%3Aci%2Fcd+)
changelog-fragment:
name: "Create changelog fragment"
needs: [labeler]
permissions:
contents: write # Needed to create changelog fragment files
pull-requests: write # Needed to comment on pull requests with changelog info
runs-on: ubuntu-latest
steps:
- uses: ansys/actions/doc-changelog@3931ac9351b13ae11b1203c2ef6b51e5c75502ea #v10.2.5
with:
bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
use-conventional-commits: true # To use the PR title instead of PR labels