-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 927 Bytes
/
Copy pathpython-ci.yml
File metadata and controls
35 lines (32 loc) · 927 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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'
- name: Install dependencies
run: |
pipx install uv
make install
- name: Run linter and pytest
run: |
make lint
make coverage
- name: SonarQubeScan
uses: sonarsource/sonarqube-scan-action@v6
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: https://sonarcloud.io
with:
args: >
-Dsonar.projectKey=maxjamchuk_python-project-52
-Dsonar.organization=maxjamchuk
-Dsonar.python.coverage.reportPaths=coverage.xml
-Dsonar.cpd.exclusions=**/templates/tasks/create.html,**/templates/tasks/update.html