diff --git a/.github/workflows/test-suite.yml b/.github/workflows/test-suite.yml index 86b4a03d4..e43a818d8 100644 --- a/.github/workflows/test-suite.yml +++ b/.github/workflows/test-suite.yml @@ -14,20 +14,27 @@ jobs: strategy: matrix: - python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"] + python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "pypy-3.6", "pypy-3.7", "pypy-3.8"] steps: - uses: "actions/checkout@v2" - uses: "actions/setup-python@v2" with: python-version: "${{ matrix.python-version }}" + - name: "Install dependencies" run: "scripts/install" + - name: "Run linting checks" run: "scripts/check" + if: ${{ startsWith('pypy', matrix.python-version) }} + - name: "Build package & docs" run: "scripts/build" + if: ${{ startsWith('pypy', matrix.python-version) }} + - name: "Run tests" run: "scripts/test" + - name: "Enforce coverage" run: "scripts/coverage" diff --git a/requirements.txt b/requirements.txt index 59cc2edf7..5e0914cbd 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,13 +6,13 @@ pyyaml requests # Testing -autoflake -black==20.8b1 +autoflake; platform_python_implementation != 'PyPy' +black==20.8b1; platform_python_implementation != 'PyPy' coverage>=5.3 databases[sqlite] flake8 isort==5.* -mypy +mypy; platform_python_implementation != 'PyPy' types-requests types-contextvars types-PyYAML