-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 1.03 KB
/
Copy pathpython-test.yml
File metadata and controls
36 lines (33 loc) · 1.03 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
name: Python Test
on:
push:
branches: ["main"]
paths-ignore: ["README.md", ".github"]
pull_request:
branches: ["main"]
paths-ignore: ["README.md", ".github"]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# pgdevkit (a real dependency as of `bdt cleanup orphaned-dbs`'s
# pgdevkit delegation) requires Python >=3.14.
python-version: ["3.14"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Install project dependencies
run: uv sync --all-extras --all-groups
- name: Lint (ruff)
run: uv run ruff check bmsdna tests
- name: Type check (ty)
run: uv run ty check bmsdna
- name: Test with pytest
run: uv run -m pytest --capture=tee-sys --maxfail=3 tests