This commit is contained in:
Meghdad committed 2026-07-23 06:40:30 +03:30
1 parent 26d41cd03f
commit db57e0e4a2
30 files changed
+1757

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
name: SonarQube
on:
workflow_dispatch:
push:
branches: [main]
permissions:
contents: read
jobs:
scan:
if: ${{ vars.SONAR_HOST_URL != '' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install -e '.[dev]' && pytest --cov-report=xml
- uses: SonarSource/sonarqube-scan-action@v5
with:
args: -Dsonar.qualitygate.wait=true
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }}