-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 968 Bytes
/
Copy pathci.yml
File metadata and controls
40 lines (32 loc) · 968 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
name: CI
on:
push:
# CI runs on pushes to the default branch and on every PR.
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
# Match the Docker image runtime (python:3.12-slim). Testing 3.14 while
# shipping 3.12 is exactly the version-skew bug we want to catch here.
strategy:
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.lock
pip install ruff mypy pip-audit pytest pytest-asyncio
- name: Lint (ruff)
run: ruff check app tests
- name: Type check (mypy)
run: mypy app
- name: Test (pytest)
run: pytest -q
- name: Dependency audit (pip-audit)
run: pip-audit