name: SonarBuild on: push: branches: - develop pull_request: types: [opened, synchronize, reopened] jobs: sonarcloud: name: SonarCloud runs-on: ubuntu-latest steps: - uses: actions/checkout@v5 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - name: Set up Python 3.13 uses: actions/setup-python@v6 with: python-version: 3.13 - name: Install dependencies run: | python -m pip install --upgrade pip wheel pip install -e ".[tests, lxml]" - name: Test with pytest run: | pytest tests --cov=fastkml --cov=tests --cov-report=xml - name: SonarCloud Scan uses: SonarSource/sonarcloud-github-action@master env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}