name: SonarQube Analysis on: push: branches: [ "dev_odex25_hr" ] pull_request: branches: [ "dev_odex25_hr" ] jobs: sonar: runs-on: sonarqube steps: - name: Checkout code uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 with: python-version: "3.10" - name: Install dependencies run: | pip install -r requirements.txt || true pip install pylint-odoo || true - name: SonarQube Scan uses: SonarSource/sonarqube-scan-action@v2 with: args: > -Dsonar.projectKey=odex25_standard_modules_dev_odex25_hr -Dsonar.sources=odex25_hr env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} SONAR_HOST_URL: "https://sonar.odex.sa"