-
Notifications
You must be signed in to change notification settings - Fork 228
35 lines (33 loc) · 877 Bytes
/
pyci.yml
File metadata and controls
35 lines (33 loc) · 877 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
35
name: Python CI
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.14'
# 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@v7
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args: >
-Dsonar.projectKey=hexlet-boilerplates_python-package
-Dsonar.organization=hexlet-boilerplates
-Dsonar.python.coverage.reportPaths=coverage.xml