Skip to content

Add CI workflow to run tests #3

Add CI workflow to run tests

Add CI workflow to run tests #3

Workflow file for this run

name: Run tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12']
os: [ubuntu-latest, macOS-latest, windows-latest]
fail-fast: false # Continue running jobs even if one fails
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up PDM
uses: pdm-project/setup-pdm@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pdm sync --dev --group testing
- name: Run Tests
run: |
pdm run --verbose pytest tests