Update pixi lockfile #154
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: SonarCloud Analysis | |
| on: | |
| push: | |
| branches: [main, develop] | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| jobs: | |
| sonarcloud: | |
| name: SonarCloud Scan | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| checks: write | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 # Shallow clones should be disabled for better analysis | |
| - name: Set up Pixi | |
| uses: prefix-dev/[email protected] | |
| with: | |
| pixi-version: v0.52.0 | |
| cache: true | |
| - name: Install dependencies | |
| run: pixi install | |
| - name: Run tests with coverage | |
| run: pixi run test-cov | |
| - name: Run ruff linting with JSON output | |
| run: | | |
| pixi run lint --output-format=json > ruff-report.json || true | |
| - name: SonarCloud Scan | |
| uses: sonarsource/[email protected] | |
| env: | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| # Note: For SonarCloud, do not set SONAR_HOST_URL (it defaults to sonarcloud.io) | |
| - name: SonarCloud Quality Gate check | |
| id: sonarcloud-quality-gate-check | |
| uses: sonarsource/[email protected] | |
| timeout-minutes: 5 | |
| env: | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| # Note: For SonarCloud, do not set SONAR_HOST_URL | |
| - name: "Show SonarCloud Quality Gate Status" | |
| run: echo "The Quality Gate status is ${{ steps.sonarcloud-quality-gate-check.outputs.quality-gate-status }}" |