Skip to content

Commit 395b098

Browse files
authored
Merge pull request #650 from donaldzou/qodana-automation-897468090
Add qodana CI checks
2 parents 95df7de + f096ab4 commit 395b098

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed
+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Qodana
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
push:
6+
branches: # Specify your branches here
7+
- main # The 'main' branch
8+
- 'releases/*' # The release branches
9+
10+
jobs:
11+
qodana:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
15+
pull-requests: write
16+
checks: write
17+
steps:
18+
- uses: actions/checkout@v3
19+
with:
20+
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
21+
fetch-depth: 0 # a full history is required for pull request analysis
22+
- name: 'Qodana Scan'
23+
uses: JetBrains/[email protected]
24+
with:
25+
pr-mode: false
26+
env:
27+
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN_2090978292 }}
28+
QODANA_ENDPOINT: 'https://qodana.cloud'

qodana.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: "1.0"
2+
linter: jetbrains/qodana-python:2024.3
3+
profile:
4+
name: qodana.recommended
5+
include:
6+
- name: CheckDependencyLicenses

0 commit comments

Comments
 (0)