-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Code Checking Quality by CI github action
- Loading branch information
Showing
2 changed files
with
13 additions
and
25 deletions.
There are no files selected for viewing
36 changes: 12 additions & 24 deletions
36
Capstone Project Phase B/.github/workflows/qodana_code_quality.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters