-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 934 Bytes
/
Copy pathci.yml
File metadata and controls
38 lines (35 loc) · 934 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
name: CI
on:
pull_request:
push:
branches: [main]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: ruff + pytest (py${{ matrix.python }})
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
python: ["3.10", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
cache-dependency-glob: pyproject.toml
- name: Install Python ${{ matrix.python }}
run: uv python install ${{ matrix.python }}
- name: Install project
run: |
uv venv --python ${{ matrix.python }}
uv pip install -e '.[dev]'
- name: ruff check
run: uv run ruff check src tests
- name: ruff format check
run: uv run ruff format --check src tests
- name: pytest
run: uv run pytest -v