Skip to content

Run pytest on PRs

Run pytest on PRs #5

Workflow file for this run

---
# yamllint disable rule:line-length
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Tests
on: # yamllint disable-line rule:truthy
pull_request:
push:
branches:
- main
tags:
- "v*"
jobs:
test:
name: Run tests
strategy:
fail-fast: false
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install pytest
run: pip install pytest
- name: Test
run: python -m pytest