File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments