Skip to content

Commit 1b68875

Browse files
pmaruszabaczek
authored andcommitted
ci: add new reusable workflow
Signed-off-by: Maruszewski, Piotr <[email protected]>
1 parent bdcb3ae commit 1b68875

File tree

11 files changed

+144
-253
lines changed

11 files changed

+144
-253
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "pip"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"

.github/dependency_review.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
fail-on-severity: 'low'
2+
allow-licenses:
3+
- 'BSD-2-Clause'
4+
- 'BSD-3-Clause'
5+
- 'BSD-3-Clause-Clear'
6+
- 'BSD-2-Clause-Views'
7+
- 'MIT'
8+
- 'Apache-2.0'
9+
- 'ISC'
10+
- 'BlueOak-1.0.0'
11+
- '0BSD'
12+
- 'Python-2.0'
13+
- 'LGPL-3.0'
14+
- 'MPL-2.0'
15+
fail-on-scopes:
16+
- 'runtime'
17+
- 'development'
18+
- 'unknown'
19+
license-check: true
20+
vulnerability-check: true
21+
allow-dependencies-licenses:
22+
- 'pkg:pypi/[email protected]'
23+
- 'pkg:pypi/psycopg2-binary'

.github/workflows/build_upload_whl.yml

Lines changed: 0 additions & 206 deletions
This file was deleted.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Check Code Standard
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize]
6+
7+
jobs:
8+
run_check_standard:
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
python_version: ['3.10', '3.13']
13+
uses: intel/mfd/.github/workflows/check_code_standard.yml@main
14+
secrets:
15+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
16+
with:
17+
REPOSITORY_NAME: ${{ github.event.pull_request.head.repo.full_name }}
18+
BRANCH_NAME: ${{ github.head_ref }}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Title + Commit Validation
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize]
6+
7+
jobs:
8+
validate_pr_format:
9+
uses: intel/mfd/.github/workflows/check_pr_format.yml@main
10+
with:
11+
REPOSITORY_NAME: ${{ github.event.pull_request.head.repo.full_name }}
12+
BRANCH_NAME: ${{ github.head_ref }}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: Dependency Review
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize]
6+
7+
jobs:
8+
dependency_review:
9+
uses: intel/mfd/.github/workflows/dependency_review.yml@main

.github/workflows/main.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CI Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build_whl:
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
python_version: ['3.10', '3.13']
14+
uses: intel/mfd/.github/workflows/main.yml@main
15+
secrets:
16+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
17+
with:
18+
REPOSITORY_NAME: ${{ github.repository }}
19+
BRANCH_NAME: ${{ github.ref_name }}
20+
PYTHON_VERSION: ${{ matrix.python_version }}
21+
PROJECT_NAME: 'mfd-const'
Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,25 @@
1-
name: CI BUILD - RELEASE MODE
1+
name: CI Build - Release Mode
2+
23
on:
34
workflow_dispatch:
45

56
jobs:
67
build_upload_whl:
78
strategy:
9+
fail-fast: false
810
matrix:
911
include:
10-
- name: python-version-3-10
11-
python_version: '3.10'
12-
push_tag: false
13-
upload_package: false
14-
continue-on-error: true
15-
- name: python-version-3-13
16-
python_version: '3.13'
17-
push_tag: true
18-
upload_package: true
19-
continue-on-error: true
20-
uses: ./.github/workflows/build_upload_whl.yml
12+
- python_version: '3.10'
13+
release_steps: true
14+
- python_version: '3.13'
15+
release_steps: false
16+
uses: intel/mfd/.github/workflows/manual_release.yml@main
2117
secrets:
2218
GH_TOKEN: ${{ secrets.GH_TOKEN }}
2319
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
2420
with:
2521
REPOSITORY_NAME: ${{ github.repository }}
2622
BRANCH_NAME: ${{ github.ref_name }}
2723
PYTHON_VERSION: ${{ matrix.python_version }}
28-
PUSH_TAG: ${{ matrix.push_tag }}
29-
RELEASE_BUILD: true
30-
UPLOAD_PACKAGE: ${{ matrix.upload_package }}
31-
GIT_USER: 'mfd-intel-bot'
32-
GIT_EMAIL: '[email protected]'
33-
PROJECT_NAME: 'mfd-const'
24+
PROJECT_NAME: 'mfd-const'
25+
RELEASE_STEPS: ${{ matrix.release_steps }}

.github/workflows/pull_request.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Dev Build
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize]
6+
7+
jobs:
8+
build_whl:
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
python_version: ['3.10', '3.13']
13+
uses: intel/mfd/.github/workflows/pull_request.yml@main
14+
secrets:
15+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
16+
with:
17+
REPOSITORY_NAME: ${{ github.event.pull_request.head.repo.full_name }}
18+
BRANCH_NAME: ${{ github.head_ref }}
19+
PYTHON_VERSION: ${{ matrix.python_version }}
20+
PROJECT_NAME: 'mfd-const'

0 commit comments

Comments
 (0)