File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,19 +27,24 @@ jobs:
2727 python -m pip install --upgrade pip
2828 pip install poetry
2929 poetry install
30- echo "CODEQL_PYTHON=$(which python)" >> $GITHUB_ENV
3130 - name : Linting
3231 run : |
3332 poetry run ruff check .
3433 - name : Testing
3534 run : |
3635 poetry run pytest
37- - name : Publish coverage
38- uses : codecov/codecov-action@v1
36+ - name : SonarQube Scan
37+ uses : sonarsource/sonarqube-scan-action@v4
38+ env :
39+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
40+
41+ - name : SonarQube Quality Gate check
42+ id : sonarqube-quality-gate-check
43+ uses : sonarsource/sonarqube-quality-gate-action@master
3944 with :
40- file : ./coverage.xml
41- fail_ci_if_error : true
42- verbose : true
45+ pollingTimeoutSec : 600
46+ env :
47+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
4348 win :
4449 runs-on : ubuntu-latest
4550 strategy :
5863 python -m pip install --upgrade pip
5964 pip install poetry
6065 poetry install
61- echo "CODEQL_PYTHON=$(which python)" >> $GITHUB_ENV
6266 - name : Linting
6367 run : |
6468 poetry run ruff check .
You can’t perform that action at this time.
0 commit comments