Skip to content

Commit 1ef4097

Browse files
author
dmy.berezovskyi
committed
added code check
1 parent bbff5b0 commit 1ef4097

2 files changed

Lines changed: 22 additions & 3 deletions

File tree

.github/workflows/code_quality.yaml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
name: Qodana
2+
23
on:
34
workflow_dispatch:
45
pull_request:
56
push:
6-
branches: # Specify your branches here
7+
branches:
78
- main
89
- master
910
- 'releases/*'
@@ -16,15 +17,33 @@ jobs:
1617
pull-requests: write
1718
checks: write
1819
steps:
20+
# Check out the code
1921
- uses: actions/checkout@v3
2022
with:
2123
ref: ${{ github.event.pull_request.head.sha }}
2224
fetch-depth: 0
25+
26+
# Set up Python (you can specify the version you need)
27+
- name: Set up Python
28+
uses: actions/setup-python@v4
29+
with:
30+
python-version: '3.12' # Set this to your desired Python version
31+
32+
- name: Install Poetry
33+
run: |
34+
python -m pip install --upgrade pip
35+
pip install poetry
36+
37+
- name: Install dependencies with Poetry
38+
run: |
39+
poetry install
40+
41+
# Run Qodana scan
2342
- name: 'Qodana Scan'
2443
uses: JetBrains/qodana-action@v2024.3
2544
with:
2645
pr-mode: false
2746
args: --apply-fixes
2847
push-fixes: pull-request
2948
env:
30-
QODANA_TOKEN: ${{ secrets.QODANA }}
49+
QODANA_TOKEN: ${{ secrets.QODANA }}

.github/workflows/lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Setup Python
2020
uses: actions/setup-python@v3
2121
with:
22-
python-version: "3.10"
22+
python-version: "3.12"
2323

2424
- name: Install Poetry
2525
run: |

0 commit comments

Comments
 (0)