Skip to content

Commit 987c58c

Browse files
committed
Refactor build workflow and add SonarCloud analysis
1 parent e931148 commit 987c58c

File tree

2 files changed

+15
-21
lines changed

2 files changed

+15
-21
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,18 @@ jobs:
2929
pip install -r test_requirements.txt
3030
coverage run -m pytest
3131
deactivate
32-
rm -rf env
32+
rm -rf env
33+
34+
sonarcloud:
35+
name: SonarCloud
36+
runs-on: ubuntu-latest
37+
needs: python-test
38+
steps:
39+
- uses: actions/checkout@v4
40+
with:
41+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
42+
- name: SonarCloud Scan
43+
uses: SonarSource/sonarcloud-github-action@master
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
46+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 commit comments

Comments
 (0)