Improve Sonar coverage and quality compliance #21
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: SonarQube Scan | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - feature/** | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| jobs: | |
| sonarqube: | |
| name: SonarQube | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - uses: astral-sh/setup-uv@v4 | |
| - name: Set up Python 3.9 | |
| run: uv python install 3.9 | |
| - name: Install project (dev + extras) | |
| run: uv sync --all-extras --dev | |
| - name: Run tox tests with coverage | |
| run: uv run tox -e test | |
| - name: SonarQube Scan | |
| uses: SonarSource/sonarqube-scan-action@v6 | |
| env: | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |