From 15290f2f5e3c1f7b61052f003fb1af8782f408f6 Mon Sep 17 00:00:00 2001 From: Tom Howlett Date: Sun, 7 Apr 2024 11:28:14 +0100 Subject: [PATCH] added caching of plugins --- .github/workflows/python-app.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 439bdf5..6829a7c 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -39,8 +39,20 @@ jobs: - name: Test with pytest run: | pytest --cov --cov-report xml:cov.xml --cov-config=.coveragerc + - shell: bash + run: | + echo 'SONAR_USER_HOME=/github/workspace/.sonar' >> $GITHUB_ENV + mkdir -p .sonar/cache + - uses: actions/cache/restore@v3 + with: + path: .sonar/cache + key: ${{ runner.os }}-sonar - name: SQ Analyse uses: sonarsource/sonarqube-scan-action@master env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} + - uses: actions/cache/save@v3 + with: + path: .sonar/cache + key: ${{ runner.os }}-sonar