-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (35 loc) · 854 Bytes
/
ci.yml
File metadata and controls
42 lines (35 loc) · 854 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
36
37
38
39
40
41
42
---
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
tests:
name: CI for ${{ matrix.python-version }}
runs-on: ubuntu-latest
env:
USING_COVERAGE: "3.11,3.13"
strategy:
matrix:
python-version: ["3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Setup uv
uses: astral-sh/setup-uv@v2
with:
enable-cache: true
version: "0.8.13"
- name: Run tests for ${{ matrix.python-version }}
run: |
uv sync
uv run pre-commit run --all
uv run pytest ./tests
uv run mypy ./src
uv run ruff check
uv run ruff format --check