-
Notifications
You must be signed in to change notification settings - Fork 11
48 lines (45 loc) · 1.63 KB
/
Copy pathci.yml
File metadata and controls
48 lines (45 loc) · 1.63 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
name: CI
on:
push:
pull_request:
jobs:
correctness:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v5
- uses: astral-sh/setup-uv@v7
- uses: actions/setup-python@v6
with:
python-version: "${{ matrix.python-version }}"
- run: uv sync --locked --python "${{ matrix.python-version }}"
- run: uv run --python "${{ matrix.python-version }}" pytest
- run: uv run --python "${{ matrix.python-version }}" serialization-benchmark validate
smoke:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: astral-sh/setup-uv@v7
- uses: actions/setup-python@v6
with:
python-version: "3.14"
- run: uv sync --locked --python "3.14"
- name: Run primitive smoke benchmark
run: >-
uv run --python "3.14" serialization-benchmark run primitive
--output results/raw/ci-primitive.json
--adapter handwritten --operation dump_one --
--processes=1 --values=1 --warmups=1 --loops=1
- name: Run encoded smoke benchmark
run: >-
uv run --python "3.14" serialization-benchmark run encoded
--output results/raw/ci-encoded.json
--adapter msgspec-json --operation encode_one --
--processes=1 --values=1 --warmups=1 --loops=1
- name: Check raw benchmark files
run: |
uv run --python "3.14" python -m pyperf check results/raw/ci-primitive.json
uv run --python "3.14" python -m pyperf check results/raw/ci-encoded.json