-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (43 loc) · 1.09 KB
/
code_quality.yaml
File metadata and controls
49 lines (43 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Qodana
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
- master
- 'releases/*'
jobs:
qodana:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
checks: write
steps:
# Check out the code
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
# Set up Python (you can specify the version you need)
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12' # Set this to your desired Python version
- name: Install Poetry
run: |
python -m pip install --upgrade pip
pip install poetry
- name: Install dependencies with Poetry
run: |
poetry install
# Run Qodana scan
- name: 'Qodana Scan'
uses: JetBrains/[email protected]
with:
pr-mode: false
args: --apply-fixes
push-fixes: pull-request
env:
QODANA_TOKEN: ${{ secrets.QODANA }}