Fix CI: Use maturin build instead of develop to avoid virtualenv requ… #3
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, pull_request] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: | | |
| pip install maturin pytest | |
| - name: Build wheel | |
| run: maturin build --release | |
| - name: Install built package | |
| run: | | |
| pip install target/wheels/*.whl | |
| - name: Test imports | |
| run: | | |
| python -c "import que_core_engine; print('✅ Rust engine imported')" | |
| python -c "from que_core.tools.system_tools import system_query; print('✅ Python tools imported')" | |
| - name: Run basic functionality test | |
| run: | | |
| python -c " | |
| from que_core.tools.system_tools import system_query | |
| result = system_query(args={'what': 'overview'}) | |
| assert result['success'], f'System query failed: {result[\"error\"]}' | |
| print('✅ Basic functionality test passed') | |
| " |