Skip to content

Commit

Permalink
Add qodana CI checks (#2607)
Browse files Browse the repository at this point in the history
* Add qodana.yaml file

* Add github workflow file

* Update qodana_code_quality.yml

---------

Co-authored-by: Qodana Application <qodana-support@jetbrains.com>
Co-authored-by: Vignesh Hari <14056798+vigneshhari@users.noreply.github.com>
  • Loading branch information
3 people authored Nov 20, 2024
1 parent 5b2b304 commit 7986fdd
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/qodana_code_quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Qodana
on:
workflow_dispatch:
pull_request:
push:
branches: # Specify your branches here
- develop

jobs:
qodana:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
checks: write
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
fetch-depth: 0 # a full history is required for pull request analysis
- name: 'Qodana Scan'
uses: JetBrains/qodana-action@v2024.2
with:
pr-mode: false
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN_1210838162 }}
QODANA_ENDPOINT: 'https://qodana.cloud'
6 changes: 6 additions & 0 deletions qodana.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: "1.0"
linter: jetbrains/qodana-python:2024.2
profile:
name: qodana.recommended
include:
- name: CheckDependencyLicenses

0 comments on commit 7986fdd

Please sign in to comment.