fix: ONNX server import order + cross-process locks for llama.cpp & P… #183
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| python-version: ["3.11", "3.12"] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install system dependencies (Linux) | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt-get update -qq | |
| sudo apt-get install -y -qq libomp-dev # OpenMP для onnxruntime | |
| - name: Install project | |
| run: | | |
| python -m pip install --upgrade pip | |
| # Без openvino и lancedb GPU-зависимостей — только CPU | |
| pip install -e ".[dev]" | |
| - name: Lint (ruff) | |
| run: ruff check src/ tests/ | |
| - name: Check version consistency | |
| run: python scripts/bump_version.py --check | |
| - name: Full test suite (no filters) | |
| run: python -m pytest tests/ -q --tb=short -m 'not slow and not benchmark' | |
| timeout-minutes: 10 | |
| clean-state: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Verify clean state (clone + install + full test) | |
| run: bash scripts/verify_clean_state.sh | |
| timeout-minutes: 15 |