Skip to content

Commit b97af74

Browse files
committed
add my_build.yml
1 parent 9315f69 commit b97af74

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/my_biuld.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build
2+
on:
3+
push:
4+
pull_request:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Set up Python
13+
uses: actions/setup-python@v5
14+
with:
15+
python-version: '3.12'
16+
# make depends on uv
17+
- name: Install dependencies
18+
run: |
19+
pip install uv
20+
make install
21+
- name: Run linter and pytest
22+
run: |
23+
make check
24+
- name: Run test coverage
25+
run: |
26+
make test-coverage
27+
28+
- name: SonarQube Scan
29+
uses: SonarSource/sonarqube-scan-action@v5
30+
env:
31+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
32+
with:
33+
args: >
34+
-Dsonar.projectKey=A-leks-andr-python-project-50
35+
-Dsonar.organization=A-leks-andr
36+
-Dsonar.python.coverge.reportPaths=coverage.xml

0 commit comments

Comments
 (0)