-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (33 loc) · 1.07 KB
/
Copy pathci.yml
File metadata and controls
41 lines (33 loc) · 1.07 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
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
jobs:
test:
name: Lint, type-check & test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Install dependencies
run: uv sync --extra dev --python 3.11
# ruff is not a project dependency (configured under [tool.ruff] only),
# so run it as a pinned ephemeral tool rather than via `uv run`.
- name: Lint (ruff)
run: uvx ruff@0.15.13 check src/
- name: Type check (mypy)
run: uv run mypy src/
- name: Test (pytest)
run: uv run pytest tests/
# Audits the project venv for known CVEs. Blocking, so new CVEs surface
# immediately. No ignores: the long-standing aiohttp exceptions were
# dropped in v0.18.1 when aiogram 3.30 lifted its aiohttp<3.14 cap and
# we moved to aiohttp>=3.14.1.
- name: Dependency audit (pip-audit)
run: uv run pip-audit