PR on #94: add AsymPowerSensorArray and remove optional columns from GenericBranch #172
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
| # 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 }} |