Add pytest suite and CI for Python unit tests #2
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: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| - dev | |
| jobs: | |
| pytest: | |
| name: "pytest (Python ${{ matrix.python-version }})" | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.12", "3.13"] | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v7.0.0 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6.4.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install package and test dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e . | |
| pip install -r test-requirements.txt | |
| - name: Run pytest | |
| run: pytest -m "not server" |