Fix CI workflow - remove invalid --no-sdist flag and improve build pr… #2
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 | |
| pip install -e . | |
| - name: Build Rust extension | |
| run: maturin develop | |
| - name: Build wheel | |
| run: maturin build --release | |
| - 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') | |
| " |