From f69487fba1fce57d6aadc553f3b94c490951a1ed Mon Sep 17 00:00:00 2001 From: Paul Bui-Quang Date: Wed, 27 Nov 2024 16:55:40 +0100 Subject: [PATCH] ci: remove sonar result as dependency of publishing docker --- .github/workflows/main.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e5d34a34..2570018a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -73,7 +73,7 @@ jobs: ${{ runner.os }}-pip- - name: Install system deps - run: | + run: | sudo apt-get update && sudo apt-get -y install gcc libkrb5-dev sudo locale-gen fr_FR.utf8 sudo update-locale @@ -97,7 +97,21 @@ jobs: coverage run --source='.' --omit="*/test*","*/migrations/*" manage.py test coverage xml --omit="*/test*","*/migrations/*" -o coverage.xml coverage html --omit="*/test*","*/migrations/*" -d htmlcov + - name: Upload coverage report + uses: actions/upload-artifact@v3 + with: + name: coverage-report + path: coverage.xml + + sonar: + needs: test + runs-on: ubuntu-latest + steps: + - name: Download coverage report + uses: actions/download-artifact@v3 + with: + name: coverage-report - name: SonarCloud Scan uses: SonarSource/sonarcloud-github-action@master env: