Skip to content

Commit 619f43b

Browse files
committed
feat(action): add check-code-quality
Signed-off-by: Vincent Koppen <[email protected]>
1 parent 0ef327a commit 619f43b

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# SPDX-FileCopyrightText: Contributors to the Power Grid Model project <[email protected]>
2+
#
3+
# SPDX-License-Identifier: MPL-2.0
4+
5+
6+
name: Check Code Quality
7+
8+
on:
9+
push:
10+
branches:
11+
- main
12+
- feature/github_actions
13+
# run pipeline on pull request
14+
pull_request:
15+
# run pipeline on merge queue
16+
merge_group:
17+
# run pipeline from another workflow
18+
workflow_call:
19+
20+
concurrency:
21+
group: ${{ github.workflow }}-${{ github.ref }}-code-quality
22+
cancel-in-progress: true
23+
24+
jobs:
25+
check-code-quality:
26+
runs-on: ubuntu-latest
27+
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@v4
31+
32+
- name: Set up Python
33+
uses: actions/setup-python@v5
34+
with:
35+
python-version: 3.11
36+
37+
- name: Upgrade pip
38+
run: pip install --upgrade pip
39+
40+
- name: Install dependencies
41+
run: pip install -e .[dev]
42+
43+
- name: Run pre-commit on all files
44+
run: pre-commit run --all-files

0 commit comments

Comments
 (0)