Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: general workflow improvements #4796

Draft
wants to merge 20 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
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
90 changes: 90 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,93 @@ examples:
- changed-files:
- any-glob-to-any-file:
- "examples/**/*"

# -- Labels based on PR title ------------------------------------------------
'fix':
- head-branch: ['fix']

'enhancement':
- head-branch: ['feat']

# -- Documentation labels ----------------------------------------------------
'docs':
- all:
- changed-files:
- any-glob-to-any-file: ['doc/source/**/*.rst']
- all-globs-to-all-files: ['!doc/source/API/**/*.rst', '!doc/styles/**', '!doc/.vale.ini']

'docs:api':
- any:
- changed-files:
- any-glob-to-any-file: ['doc/source/API/**/*.rst']

'docs:examples':
- any:
- changed-files:
- any-glob-to-any-file: ['examples/**/*.py']

## -- Other labels ------------------------------------------------------------
'code-style':
- any:
- changed-files:
- any-glob-to-any-file: ['.pre-commit-config.yaml', 'doc/.vale.ini']

'docker':
- any:
- changed-files:
- any-glob-to-any-file: ['docker/**']

'ci':
- any:
- changed-files:
- any-glob-to-any-file: ['.github/workflows/**']

'tests:unit':
- any:
- changed-files:
- any-glob-to-any-file: ['_unittest/**']

'tests:iron':
- any:
- changed-files:
- any-glob-to-any-file: ['_unittest_ironpython/**']

'tests:solvers':
- any:
- changed-files:
- any-glob-to-any-file: ['_unittest_solvers/**']

# HACK: the following labels are declared with the only purpose of avoiding the
# GitHub labeler bot to remove those. This is a known issue reported in the
# official action/labeler repo https://github.com/actions/labeler/issues/763

'ci:skip':
- all:
- changed-files:
- all-globs-to-all-files: ['THIS-NEVER-MATCHES-A-FILE']

'docs:skip':
- all:
- changed-files:
- all-globs-to-all-files: ['THIS-NEVER-MATCHES-A-FILE']

'tests:skip':
- all:
- changed-files:
- all-globs-to-all-files: ['THIS-NEVER-MATCHES-A-FILE']

'tests:unit:skip':
- all:
- changed-files:
- all-globs-to-all-files: ['THIS-NEVER-MATCHES-A-FILE']

'tests:iron:skip':
- all:
- changed-files:
- all-globs-to-all-files: ['THIS-NEVER-MATCHES-A-FILE']

'tests:solvers:skip':
- all:
- changed-files:
- all-globs-to-all-files: ['THIS-NEVER-MATCHES-A-FILE']

151 changes: 128 additions & 23 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,140 @@
- name: bug
description: Something isn't working
# The labels declared in this file are the ones avialables
# https://github.com/ansys/pyaedt/labels

# -- Defects and glitches labels----------------------------------------------

- name: 'bug'
description: Defects or glitches reported by users or developers
color: d42a34

- name: dependencies
description: Related with project dependencies
color: ffc0cb
- name: 'fix'
description: Pull requests related to resolving problems or errors
color: d42a34

# -- Style labels ------------------------------------------------------------

- name: 'style'
description: Improvements related to general project style
color: dcbeff

- name: 'style:code'
description: Improvements related to code style
color: dcbeff

- name: 'style:docs'
description: Improvements related to doc style
color: dcbeff

- name: 'style:branch'
description: Verifies branch style is compliant with PyAnsys guidelines
color: dcbeff

- name: 'style:skip'
description: Skip style runs in CI/CD
color: dcbeff

# -- Tests labels ------------------------------------------------------------

- name: 'tests'
description: Related with improvements of the test suite
color: ffd8b1

- name: 'tests:smoke'
description: Related with improvements of the smoke test suite
color: ffd8b1

- name: 'tests:unit'
description: Related with improvements of the unit test suite
color: ffd8b1

- name: 'tests:iron'
description: Related with improvements of the IronPython test suite
color: ffd8b1

- name: 'tests:solvers'
description: Related with improvements of the solvers test suite
color: ffd8b1

- name: 'tests:skip'
description: Skip tests runs in CI/CD
color: ffd8b1

- name: 'tests:smoke:skip'
description: Skip smoke tests runs in CI/CD
color: ffd8b1

- name: 'tests:unit:skip'
description: Skip IronPython tests runs in CI/CD
color: ffd8b1

- name: 'tests:iron:skip'
description: Skip IronPython tests runs in CI/CD
color: ffd8b1

- name: documentation
description: Improvements or additions to documentation
- name: 'tests:solvers:skip'
description: Skip IronPython tests runs in CI/CD
color: ffd8b1

# -- Documentation labels ----------------------------------------------------

- name: 'docs'
description: Issues related to documentation
color: 0677ba

- name: enhancement
description: New features or code improvements
color: FFD827
- name: 'docs:api'
description: Related to API documentation
color: 0677ba

- name: good first issue
description: Easy to solve for newcomers
color: 62ca50
- name: 'docs:examples'
description: Related to documentation examples
color: 0677ba

- name: maintenance
description: Package and maintenance related
color: f78c37
- name: 'docs:skip'
description: Skip documentation runs in CI/CD
color: 0677ba

# -- Dependencies labels -----------------------------------------------------

- name: 'dependencies'
description: Related with project dependencies
color: fabed4

- name: release
- name: 'dependencies:pyproject'
description: Related with project file dependencies
color: fabed4

- name: 'dependencies:ci'
description: Related with pipelines dependencies
color: fabed4

# -- CI/CD labels ------------------------------------------------------------

- name: 'ci'
description: Pipelines maintenance related
color: a9a9a9

- name: 'ci:skip'
description: Skip CI/CD runs
color: a9a9a9

# -- Other labels ------------------------------------------------------------

- name: 'release'
description: Anything related to an incoming release
color: ffffff

- name: testing
description: Anything related to testing
color: 5802B8
- name: 'good first issue'
description: Issues suitable for newcomers or those with less experience
color: 62ca50

- name: 'enhancement'
description: General improvements to existing features
color: ffd827

- name: 'maintenance'
description: Generic maintenance related
color: f78c37

- name: examples
description: Anything related to the examples
color: 3C2E5F
- name: 'docker'
description: Docker maintenance related
color: 000075
Loading
Loading