# This workflow, on each of the supported versions of CPython, as
# well as on some versions of PyPy, installs the library and runs
# its doctests.

name: Install and run doctests

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

jobs:
  build:

    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        python-version: ["2.7", "3.4", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "pypy2", "pypy3"]

    steps:
    - uses: actions/checkout@v2
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python-version }}
    - name: Install
      run: |
        python -m pip install --upgrade pip
        pip install .
    - name: Run doctests
      run: |
        python run-doctests.py

Set up a GitHub workflow to install + run doctests
Set up a GitHub workflow to install + run doctests