Skip to content

Commit fe8bdd9

Browse files
committed
fix for linux
1 parent 69306b6 commit fe8bdd9

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/build.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff 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:
@@ -58,7 +63,6 @@ jobs:
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 .

0 commit comments

Comments
 (0)