Skip to content

Improve Sonar coverage and quality compliance #21

Improve Sonar coverage and quality compliance

Improve Sonar coverage and quality compliance #21

Workflow file for this run

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 }}