Skip to content

ci: run pytest suite on push and PRs #1

ci: run pytest suite on push and PRs

ci: run pytest suite on push and PRs #1

Workflow file for this run

name: Tests
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
pytest:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12"]
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install test dependencies
# The test suite stubs the ``bot`` package, so only the lightweight
# dev dependencies are required (not the full runtime requirements).
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Run pytest
run: pytest