File tree Expand file tree Collapse file tree 1 file changed +24
-32
lines changed
Expand file tree Collapse file tree 1 file changed +24
-32
lines changed Original file line number Diff line number Diff line change 1- name : Linting
1+ name : Qodana
22
33on :
4+ workflow_dispatch :
45 pull_request :
5- branches :
6- - main
76 push :
87 branches :
98 - main
9+ - ' releases/*'
1010
1111jobs :
12- lint :
13- runs-on : macos-latest
14-
12+ qodana :
13+ runs-on : ubuntu-latest
14+ permissions :
15+ contents : write
16+ pull-requests : write
17+ checks : write
1518 steps :
16- - name : Checkout repository
19+ - name : Checkout Code
1720 uses : actions/checkout@v3
21+ with :
22+ ref : ${{ github.event.pull_request.head.sha }}
23+ fetch-depth : 0
1824
19- - name : Setup Python
25+ - name : Set up Python 3.10
2026 uses : actions/setup-python@v3
2127 with :
2228 python-version : " 3.10"
2329
24- - name : Install Poetry
30+ - name : Install dependencies
2531 run : |
2632 python -m pip install --upgrade pip
27- pip install poetry
28-
29- - name : Install dependencies with Poetry
30- run : |
31- poetry install
33+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
3234
33- - name : Run Ruff Linting
35+ - name : Run tests with coverage
3436 run : |
35- poetry run ruff check .
36-
37- qodana :
38- runs-on : ubuntu-latest
39- steps :
40- - name : Checkout Repository
41- uses : actions/checkout@v4
42-
43- - name : Run Qodana Scan
44- uses : JetBrains/qodana-action@v2024.1
45- with :
46- linter : jetbrains/qodana-python
47- args : " --baseline,qodana.baseline.json"
37+ coverage run -m pytest -s
38+ coverage xml -o .qodana/code-coverage/coverage.xml
4839
49- - name : Upload Qodana Report
50- uses : actions/upload-artifact@v4
40+ - name : Qodana Scan
41+ uses : JetBrains/qodana-action@v2024.3
42+ env :
43+ QODANA_TOKEN : ${{ secrets.QODANA_TOKEN }}
5144 with :
52- name : qodana-report
53- path : qodana/report
45+ args : --baseline,qodana.sarif.json
You can’t perform that action at this time.
0 commit comments