mirror of
https://github.com/Doctorado-ML/mufs.git
synced 2025-08-17 16:45:53 +00:00
Update main.yml
This commit is contained in:
10
.github/workflows/main.yml
vendored
10
.github/workflows/main.yml
vendored
@@ -39,8 +39,10 @@ jobs:
|
|||||||
coverage run -m xmlrunner -v mufs.tests -o .report
|
coverage run -m xmlrunner -v mufs.tests -o .report
|
||||||
coverage xml -i -o .report/coverage.xml
|
coverage xml -i -o .report/coverage.xml
|
||||||
coverage report -m --fail-under=100
|
coverage report -m --fail-under=100
|
||||||
- run: echo "project_version=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
|
- name: Get project version
|
||||||
- uses: sonarsource/sonarqube-scan-action@master
|
run: echo "project_version=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
|
||||||
|
- name: SonarQube scanner
|
||||||
|
uses: sonarsource/sonarqube-scan-action@master
|
||||||
env:
|
env:
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
||||||
@@ -49,9 +51,11 @@ jobs:
|
|||||||
-Dsonar.projectVersion=${{ env.project_version }}
|
-Dsonar.projectVersion=${{ env.project_version }}
|
||||||
-Dsonar.python.coverage.reportPaths=.report/coverage.xml
|
-Dsonar.python.coverage.reportPaths=.report/coverage.xml
|
||||||
-Dsonar.python.xunit.reportPath=.report/TEST*
|
-Dsonar.python.xunit.reportPath=.report/TEST*
|
||||||
|
-Dsonar.sources=.
|
||||||
# If you wish to fail your job when the Quality Gate is red, uncomment the
|
# If you wish to fail your job when the Quality Gate is red, uncomment the
|
||||||
# following lines. This would typically be used to fail a deployment.
|
# following lines. This would typically be used to fail a deployment.
|
||||||
- uses: sonarsource/sonarqube-quality-gate-action@master
|
- name: Quality Gate
|
||||||
|
uses: sonarsource/sonarqube-quality-gate-action@master
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
env:
|
env:
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
|
Reference in New Issue
Block a user