-
Notifications
You must be signed in to change notification settings - Fork 37
49 lines (38 loc) · 1.47 KB
/
python-ci.yml
File metadata and controls
49 lines (38 loc) · 1.47 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
name: Python CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
cd python
pip install -e .[test]
- name: Build C extension
run: |
cd python
BPLUSTREE_BUILD_C_EXTENSION=1 python setup.py build_ext --inplace
- name: Run fast tests
run: |
cd python
python -m pytest tests/ -m "not slow" -x -v
- name: Run critical reliability tests
run: |
cd python
echo "Running memory leak test (CRITICAL)..."
timeout 5m python -m pytest tests/test_memory_leaks.py::TestMemoryLeaks::test_insertion_deletion_cycle_no_leak -v --tb=short
echo "Running performance regression test (CRITICAL)..."
timeout 3m python -m pytest tests/test_performance_benchmarks.py::TestPerformanceBenchmarks::test_insertion_performance_small -v --tb=short
echo "Running invariant stress test (CRITICAL)..."
timeout 3m python -m pytest tests/test_bplus_tree.py::TestSetItemSplitting::test_many_insertions_maintain_invariants -v --tb=short
echo "Running C extension segfault tests (CRITICAL)..."
timeout 2m python -m pytest tests/test_c_extension_segfault_fix.py -v --tb=short