-
Notifications
You must be signed in to change notification settings - Fork 14
47 lines (34 loc) · 1.01 KB
/
Copy pathpython-checks.yml
File metadata and controls
47 lines (34 loc) · 1.01 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
46
47
name: Python tests
on: [ push, pull_request ]
jobs:
run-tests:
name: "Run tests"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ "3.10", "3.11", "3.12", "3.13", "3.14" ]
steps:
- uses: actions/checkout@v7
- name: Install uv and set up Python
uses: astral-sh/setup-uv@v10.0.1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --locked
- name: Test with pytest
run: uv run pytest
run-static-checks:
name: "Run static checks"
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v7
- name: Install uv
uses: astral-sh/setup-uv@v10.0.1
- name: Install dependencies
run: uv sync --locked --dev
- name: Run linter
run: uv run ruff check --output-format github
- name: Check formatting
run: uv run ruff format --check --output-format github