-
-
Notifications
You must be signed in to change notification settings - Fork 7
45 lines (43 loc) · 1.11 KB
/
uv.yml
File metadata and controls
45 lines (43 loc) · 1.11 KB
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
36
37
38
39
40
41
42
43
44
45
name: UV
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
uv:
name: python
runs-on: ubuntu-latest
permissions: read-all
strategy:
matrix:
python-version:
- "3.11"
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
with:
fetch-depth: 0
- name: Install uv
uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867
with:
python-version: ${{ matrix.python-version }}
- name: Set up Python
run: uv python install
- name: pyTest
run: uv run pytest tests
- name: Ruff (check)
run: uv run ruff check
- name: Ruff (format)
run: uv run ruff format --diff --check
- name: Ty
run: uv run ty check
#- name: Troml
# run: uv run troml check
- name: Run SonarQube
uses: sonarsource/sonarqube-scan-action@fd88b7d7ccbaefd23d8f36f73b59db7a3d246602
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}