-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (52 loc) · 1.46 KB
/
Copy pathci.yml
File metadata and controls
56 lines (52 loc) · 1.46 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
permissions:
contents: read
jobs:
core:
name: Python ${{ matrix.python }} / Pydantic ${{ matrix.pydantic_label }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- python: "3.10"
pydantic_spec: ">=1.10,<2"
pydantic_label: "1"
- python: "3.10"
pydantic_spec: ">=2,<3"
pydantic_label: "2"
- python: "3.12"
pydantic_spec: ">=1.10,<2"
pydantic_label: "1"
- python: "3.12"
pydantic_spec: ">=2,<3"
pydantic_label: "2"
- python: "3.14"
pydantic_spec: ">=2,<3"
pydantic_label: "2"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install package
run: python -m pip install -e . "pytest>=8" "pydantic${{ matrix.pydantic_spec }}"
- name: Test
run: python -m pytest -q -m "not optional"
optional-integrations:
name: FastAPI and NATS integrations
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install package with optional integrations
run: python -m pip install -e ".[test]"
- name: Test
run: python -m pytest -q