Fix code formatting and eliminate Rust compiler warnings #124
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |