---
# yamllint disable rule:line-length
name: Tests
# yamllint disable-line rule:truthy
on:
    push:
        paths:
            - '**.py'
            - .github/workflows/run_tests.yml
            - .github/scripts/run_tests.sh
jobs:
    pip-install-and-tests:
        runs-on: ubuntu-latest
        strategy:
            matrix:
                python-version: ["3.8", "3.9", "3.10"]
        steps:
            - uses: actions/checkout@v2
            - uses: actions/setup-python@v2
              with:
                  python-version: ${{ matrix.python-version }}
            - name: Run tests
              run: ${GITHUB_WORKSPACE}/.github/scripts/run_tests.sh

---
# yamllint disable rule:line-length
name: Tests
# yamllint disable-line rule:truthy
on:
    push:
        paths:
            - '**.py'
            - .github/workflows/run_tests.yml
            - .github/scripts/run_tests.sh
jobs:
    pip-install-and-tests:
        runs-on: ubuntu-latest
        strategy:
            matrix:
                python-version: ["3.7", "3.8", "3.9", "3.10"]
        steps:
            - uses: actions/checkout@v2
            - uses: actions/setup-python@v2
              with:
                  python-version: ${{ matrix.python-version }}
            - name: Run tests
              run: ${GITHUB_WORKSPACE}/.github/scripts/run_tests.sh

Test with Python 3.7 too
Test with Python 3.7 too
