Skip to content

chore(deps): bump actions/checkout from 6.0.2 to 6.0.3 #844

chore(deps): bump actions/checkout from 6.0.2 to 6.0.3

chore(deps): bump actions/checkout from 6.0.2 to 6.0.3 #844

Workflow file for this run

# SPDX-FileCopyrightText: Contributors to the Power Grid Model project <powergridmodel@lfenergy.org>
#
# 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Install uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
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@7006c4492b2e0ee0f816d36501671557c97f5995 # v8.1.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}