Add CI workflow #10
Workflow file for this run
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: Python Tests | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| cache: "pip" | |
| - name: Upgrade pip | |
| run: python -m pip install --upgrade pip | |
| - name: Install project (editable) | |
| run: | | |
| pip install -e . | |
| pip install -r requirements-dev.txt | |
| - name: Run full check suite (source) | |
| run: ./scripts/check.sh | |
| - name: Install build tooling | |
| run: pip install build | |
| - name: Build wheel | |
| run: python -m build | |
| - name: Create clean venv for wheel test | |
| run: | | |
| python -m venv wheel_env | |
| source wheel_env/bin/activate | |
| pip install --upgrade pip | |
| pip install dist/*.whl | |
| pip install -r requirements-dev.txt | |
| ./scripts/check.sh |