diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build.yml | 12 | ||||
-rw-r--r-- | .github/workflows/deploy.yml | 5 |
2 files changed, 14 insertions, 3 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3e7079a..380f48c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] + python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', 'pypy3.9'] fail-fast: false services: nginx: @@ -56,11 +56,19 @@ jobs: run: poetry install -v -E all # Run tests with coverage report - - name: Run tests + - name: Run unit + integration tests + if: ${{ !contains(matrix.python-version, 'pypy') }} run: | source $VENV nox -e cov -- xml + # pypy tests aren't run in parallel, so too slow for integration tests + - name: Run unit tests only + if: ${{ contains(matrix.python-version, 'pypy') }} + run: | + source $VENV + pytest tests/unit + # Latest python version: send coverage report to codecov - name: "Upload coverage report to Codecov" if: ${{ matrix.python-version == env.LATEST_PY_VERSION }} diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 13085d1..c627762 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -115,8 +115,11 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] + python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', 'pypy3.9'] requests-version: [2.22, 2.23, 2.24, 2.25, 2.26, 2.27, latest] + exclude: + - os: windows-latest + python-version: 'pypy3.9' fail-fast: false defaults: run: |