fix: Use matplotlib Agg backend for headless GitHub Actions runner #36
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: Q-Refine Benchmark Pipeline | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| pull_request: | |
| branches: [ main, master ] | |
| jobs: | |
| benchmark: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python 3.10 | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.10' | |
| - name: Install Quantum Dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
| - name: Run Q-Refine Enterprise Pipeline | |
| env: | |
| PYTHONPATH: . | |
| run: | | |
| python q_refine_pipeline.py | |
| - name: Upload Dashboard Report | |
| uses: actions/upload-artifact@v3 | |
| with: | |
| name: q-refine-dashboard | |
| path: q_refine_dashboard.png | |
| - name: Post-Benchmark Status | |
| run: echo "Q-Refine Benchmark completed successfully!" |