Finalize PEP517 packaging (pyproject.toml only) #4
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: Performance Benchmark | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| benchmark: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.10' | |
| - name: Install dependencies | |
| run: | | |
| pip install torch --index-url https://download.pytorch.org/whl/cpu | |
| pip install -e . | |
| - name: Run unit tests | |
| run: | | |
| python -c "import sparseflow as sf; print('✅ Import successful')" | |
| - name: Validate API | |
| run: | | |
| python examples/basic_usage.py | |
| # Note: GPU benchmarks require self-hosted runner with CUDA | |
| # Add this when you have GPU CI infrastructure |