File tree Expand file tree Collapse file tree 1 file changed +17
-30
lines changed Expand file tree Collapse file tree 1 file changed +17
-30
lines changed Original file line number Diff line number Diff line change 1- name : Qodana
1+ name : Qodana Code Analysis
22
33on :
4- workflow_dispatch :
5- pull_request :
64 push :
75 branches :
86 - main
9- - ' releases/* '
7+ pull_request :
108
119jobs :
1210 qodana :
11+ name : Run Qodana Analysis
1312 runs-on : ubuntu-latest
14- permissions :
15- contents : write
16- pull-requests : write
17- checks : write
13+
1814 steps :
19- - name : Checkout Code
20- uses : actions/checkout@v3
21- with :
22- ref : ${{ github.event.pull_request.head.sha }}
23- fetch-depth : 0
15+ - name : Checkout Repository
16+ uses : actions/checkout@v4
2417
25- - name : Set up Python 3.10
26- uses : actions/setup-python@v3
18+ - name : Run Qodana
19+ uses : JetBrains/qodana-action@v2024.1
2720 with :
28- python-version : " 3.10"
29-
30- - name : Install dependencies
31- run : |
32- python -m pip install --upgrade pip
33- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
21+ args : " --baseline,qodana.sarif.json"
3422
35- - name : Run tests with coverage
36- run : |
37- coverage run -m pytest -s
38- coverage xml -o .qodana/code-coverage/coverage.xml
23+ - name : Upload Qodana Report
24+ uses : actions/upload-artifact@v4
25+ with :
26+ name : qodana-report
27+ path : qodana.sarif.json
3928
40- - name : Qodana Scan
41- uses : JetBrains/qodana-action@v2024.3
42- env :
43- QODANA_TOKEN : ${{ secrets.QODANA_TOKEN }}
29+ - name : Publish Qodana Annotations
30+ uses : github/codeql-action/upload-sarif@v3
4431 with :
45- args : --baseline, qodana.sarif.json
32+ sarif_file : qodana.sarif.json
You can’t perform that action at this time.
0 commit comments