Skip to content

Commit 24269a5

Browse files
Update lint.yaml
1 parent fa22282 commit 24269a5

File tree

1 file changed

+17
-30
lines changed

1 file changed

+17
-30
lines changed

.github/workflows/lint.yaml

Lines changed: 17 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,32 @@
1-
name: Qodana
1+
name: Qodana Code Analysis
22

33
on:
4-
workflow_dispatch:
5-
pull_request:
64
push:
75
branches:
86
- main
9-
- 'releases/*'
7+
pull_request:
108

119
jobs:
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

0 commit comments

Comments
 (0)