-
Notifications
You must be signed in to change notification settings - Fork 1
27 lines (25 loc) · 794 Bytes
/
test.yml
File metadata and controls
27 lines (25 loc) · 794 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
name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.2.2
- uses: astral-sh/setup-uv@e4db8464a088ece1b920f60402e813ea4de65b8f # v4
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --group dev
- name: Lint
run: uv run ruff check src/
- name: Format check
run: uv run ruff format --check src/
- name: Run tests
run: uv run pytest tests/ -q --tb=short --cov=chat_sdk --cov-fail-under=70