diff options
author | Jordan Cook <jordan.cook.git@proton.me> | 2022-12-04 13:05:10 -0600 |
---|---|---|
committer | Jordan Cook <jordan.cook.git@proton.me> | 2022-12-30 15:11:33 -0600 |
commit | 851e8750dd32e58554433d1ebebd9fc8d012d4ba (patch) | |
tree | 6e67797f1dfbcc0814d2b2536624bec9a9441b93 /.github | |
parent | b22db537986f91d72d771731df1828e083e45736 (diff) | |
download | requests-cache-851e8750dd32e58554433d1ebebd9fc8d012d4ba.tar.gz |
Add tests for pypy3.9
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: |