Skip to content

feat: Implement v2.0.0 major release with production-quality improvem… #12

feat: Implement v2.0.0 major release with production-quality improvem…

feat: Implement v2.0.0 major release with production-quality improvem… #12

Workflow file for this run

name: SonarCloud Analysis
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest pytest-cov
- name: Run tests with coverage
run: |
pytest tests/ --cov=githubauthlib --cov-report=xml --cov-report=term-missing
- name: SonarCloud Scan
uses: SonarSource/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args: >
-Dsonar.organization=flexrpl
-Dsonar.projectKey=fleXRPL_githubauthlib
-Dsonar.python.coverage.reportPaths=coverage.xml
-Dsonar.sources=githubauthlib
-Dsonar.tests=tests
-Dsonar.python.version=3
-Dsonar.sourceEncoding=UTF-8
-Dsonar.exclusions=docs/**,scripts/**
-Dsonar.coverage.exclusions=tests/**,docs/**,scripts/**
-Dsonar.python.xunit.reportPath=test-results.xml