-
Notifications
You must be signed in to change notification settings - Fork 0
87 lines (76 loc) · 2.2 KB
/
Copy pathci.yml
File metadata and controls
87 lines (76 loc) · 2.2 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: CI
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
name: Tests (Python ${{ matrix.python }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python: ["3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install tools
run: |
python -m pip install --upgrade pip
python -m pip install pytest pytest-cov ruff mypy
python -m pip install -e ./sup-lang
- name: Lint (ruff)
run: |
ruff check sup-lang/sup || true
- name: Type check (mypy)
run: |
mypy sup-lang/sup || true
- name: Run tests
run: |
pytest -q --maxfail=1 --disable-warnings --cov=sup-lang/sup --cov-report=term-missing sup-lang
conformance:
name: Conformance (spec suite)
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install
run: |
python -m pip install -U pip
python -m pip install -e ./sup-lang pytest
- name: Run conformance tests
run: |
pytest -q sup-lang
perf:
name: Perf benchmarks
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install
run: |
python -m pip install -U pip
python -m pip install -e ./sup-lang
python -c "import sup, sys; print('sup import ok', sup.__version__)"
- name: Run benchmarks
run: |
python sup-lang/sup/tools/benchmarks.py --case arith_loop --iters 5 --json --out perf.json
- name: Enforce performance budgets
run: |
python sup-lang/sup/tools/bench_gates.py
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: perf.json
path: perf.json