Skip to content

Commit

Permalink
Code Checking Quality by CI github action
Browse files Browse the repository at this point in the history
  • Loading branch information
almog2290 committed Jul 31, 2024
1 parent b17aa63 commit 269dea8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 25 deletions.
36 changes: 12 additions & 24 deletions Capstone Project Phase B/.github/workflows/qodana_code_quality.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,21 @@
name: Qodana Code Quality

name: Qodana
on:
push:
workflow_dispatch:
pull_request:
branches:
- main
pull_request:
- codeCheckQualityByGitActions
push:
branches:
- main
- codeCheckQualityByGitActions

jobs:
qodana:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Qodana
uses: JetBrains/qodana-action@v2023.1.1
with:
linter: jetbrains/qodana-python-community:2024.1
results-dir: qodana-results

- name: Run Qodana
run: |
docker run --rm -v $(pwd):/data/project -v $(pwd)/qodana-results:/data/results jetbrains/qodana-python-community:2024.1
- name: Upload Qodana results
uses: actions/upload-artifact@v2
- uses: actions/checkout@v3
with:
name: qodana-results
path: qodana-results
fetch-depth: 0
- name: 'Qodana Scan'
uses: JetBrains/qodana-action@v2024.1
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
2 changes: 1 addition & 1 deletion Capstone Project Phase B/qodana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ version: "1.0"

#Specify inspection profile for code analysis
profile:
name: qodana.starter
name: qodana.recommended

#Enable inspections
#include:
Expand Down

0 comments on commit 269dea8

Please sign in to comment.