Skip to content

add sonar keys

add sonar keys #68

Workflow file for this run

name: Python CI
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
# make depends on uv
- name: Install dependencies
run: |
pip install uv
make install
- name: Run linter and pytest
run: |
make check
- name: Run test coverage
run: |
make test-coverage
- name: SonarQubeScan
uses: SonarSource/sonarqube-scan-action@v4
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args:
sonar.projectKey=hexlet-boilerplates_python-package
sonar.organization=hexlet-boilerplates
sonar.python.coverage.reportPaths=coverage.xml