Skip to content

Commit 434a6c1

Browse files
maint: Add CICD
1 parent ca67cec commit 434a6c1

File tree

4 files changed

+112
-0
lines changed

4 files changed

+112
-0
lines changed

.github/CODEOWNERS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# This is a comment.
2+
# Each line is a file pattern followed by one or more owners.
3+
4+
# These owners will be the default owners for everything in
5+
# the repo. Unless a later match takes precedence,
6+
# they will be requested for review when someone opens a pull request.
7+
* @AlejandroFernandezLuces @RobPasMue

.github/labeler.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
documentation:
2+
- changed-files:
3+
- any-glob-to-any-file: ['doc/source/**/*', 'README.md']
4+
5+
maintenance:
6+
- changed-files:
7+
- any-glob-to-any-file: ['.github/**/*', 'pyproject.toml', 'tox.ini', '.pre-commit-config.yaml']
8+
9+
testing:
10+
- changed-files:
11+
- any-glob-to-any-file: ['tests/*']

.github/labels.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
- name: bug
2+
description: Something isn't working
3+
color: d42a34
4+
5+
- name: dependencies
6+
description: Related with project dependencies
7+
color: ffc0cb
8+
9+
- name: documentation
10+
description: Improvements or additions to documentation
11+
color: 0677ba
12+
13+
- name: enhancement
14+
description: New features or code improvements
15+
color: FFD827
16+
17+
- name: good first issue
18+
description: Easy to solve for newcomers
19+
color: 62ca50
20+
21+
- name: maintenance
22+
description: Package and maintenance related
23+
color: f78c37
24+
25+
- name: release
26+
description: Anything related to an incoming release
27+
color: ffffff
28+
29+
- name: testing
30+
description: Anything related to testing
31+
color: 5802B8
32+
33+
- name: graphics
34+
description: Anything related to graphics
35+
color: 5903A8
36+
37+
- name: triage
38+
description: Need some assessment
39+
color: f78a50
40+
41+
- name: top priority
42+
description: Must be fixed promptly
43+
color: ab8a50

.github/workflows/cicd.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: GitHub CI
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
push:
7+
tags:
8+
- "*"
9+
branches:
10+
- main
11+
12+
env:
13+
PACKAGE_NAME: ansys-tools-common
14+
MAIN_PYTHON_VERSION: 3.13
15+
16+
jobs:
17+
style:
18+
name: Code style
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: PyAnsys code style checks
22+
uses: ansys/actions/code-style@v9
23+
with:
24+
python-version: ${{ env.MAIN_PYTHON_VERSION }}
25+
smoke-tests:
26+
name: Build and Smoke tests
27+
runs-on: ${{ matrix.os }}
28+
strategy:
29+
fail-fast: false
30+
matrix:
31+
os: [ubuntu-latest, windows-latest, macos-latest]
32+
python-version: ['3.10', '3.11', '3.12']
33+
steps:
34+
- name: Build wheelhouse and perform smoke test
35+
uses: ansys/actions/build-wheelhouse@v9
36+
with:
37+
library-name: ${{ env.PACKAGE_NAME }}
38+
operating-system: ${{ matrix.os }}
39+
python-version: ${{ matrix.python-version }}
40+
whitelist-license-check: "termcolor" # Has MIT license, but it's not recognized
41+
42+
package:
43+
name: Package library
44+
runs-on: ubuntu-latest
45+
needs: [smoke-tests]
46+
steps:
47+
- name: Build library source and wheel artifacts
48+
uses: ansys/actions/build-library@v9
49+
with:
50+
library-name: ${{ env.PACKAGE_NAME }}
51+
python-version: ${{ env.MAIN_PYTHON_VERSION }}

0 commit comments

Comments
 (0)