Skip to content

Fix broken performance test #184

Fix broken performance test

Fix broken performance test #184

Workflow file for this run

# SPDX-FileCopyrightText: Contributors to the Power Grid Model project <[email protected]>
#
# SPDX-License-Identifier: MPL-2.0
name: Sonar Cloud
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-sonar
cancel-in-progress: true
jobs:
sonar-cloud:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v5
- name: Install uv
uses: astral-sh/setup-uv@v7
if: ${{ always() }}
with:
activate-environment: true
enable-cache: true
- name: install poe
run: uv tool install poethepoet
- name: Install dependencies
if: ${{ always() }}
run: uv sync --frozen --dev
- name: Test and Coverage
run: |
poe coverage
uv run coverage xml
- name: SonarCloud Scan
if: ${{ (github.event_name == 'push') || (github.event.pull_request.head.repo.owner.login == 'PowerGridModel') }}
uses: SonarSource/sonarqube-scan-action@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}