Ignore Python build artifacts #24
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: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" # use 3.11 for better SciPy/NumPy wheel support | |
| - name: Install deps | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| # optional: install pytest explicitly if not in requirements | |
| pip install pytest | |
| - name: Expose repo root on PYTHONPATH | |
| run: echo "PYTHONPATH=$PWD" >> $GITHUB_ENV | |
| - name: Run tests | |
| run: pytest -q |