Skip to content

Commit

Permalink
added caching of plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-howlett-sonarsource committed Apr 7, 2024
1 parent a490210 commit 15290f2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 15290f2

Please sign in to comment.