Skip to content

Python tests

Python tests #17

Workflow file for this run

name: Python tests
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
run_tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-13, windows-latest]
python-version: ['3.9', '3.10', '3.11']
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install -e .[github]
- name: Run tests with pytest
if: always()
run: |
pytest -vv --suppress-no-test-exit-code