Skip to content

sonar

sonar #239

Workflow file for this run

name: sonar
on:
push:
branches:
- master
schedule:
- cron: "0 0 * * *"
env:
PYTHONUNBUFFERED: "1"
FORCE_COLOR: "1"
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install Hatch
run: pip install --upgrade hatch
- name: Run tests
run: hatch run test
- name: SonarCloud Scan
uses: sonarsource/sonarqube-scan-action@v6
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}