diff options
| author | Bert JW Regeer <bertjw@regeer.org> | 2020-05-04 23:39:09 -0700 |
|---|---|---|
| committer | Bert JW Regeer <bertjw@regeer.org> | 2020-05-06 20:47:11 -0700 |
| commit | 87040469b30f01c3409bd4fdd8e94d3ed24e805d (patch) | |
| tree | ed645a022f8b859d1a523c8fab2f252a2298407d /.github | |
| parent | 559aa50281b48634b4cb4df1f4adf322be102f0c (diff) | |
| download | pyramid-87040469b30f01c3409bd4fdd8e94d3ed24e805d.tar.gz pyramid-87040469b30f01c3409bd4fdd8e94d3ed24e805d.tar.bz2 pyramid-87040469b30f01c3409bd4fdd8e94d3ed24e805d.zip | |
Enable coverage on CPython test runs
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/ci-tests.yml | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index 366c0ffcf..a16421a0b 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -1,6 +1,6 @@ name: Build and test -on: +on: # Only on pushes to master or one of the release branches we build on push push: branches: @@ -28,6 +28,14 @@ jobs: - x64 - x86 + include: + # Only run coverage on ubuntu-latest, except on pypy3 + - os: "ubuntu-latest" + pytest-args: "--cov" + - os: "ubuntu-latest" + py: "pypy3" + pytest-args: "" + exclude: # Linux and macOS don't have x86 python - os: "ubuntu-latest" @@ -49,7 +57,7 @@ jobs: architecture: ${{ matrix.architecture }} - run: pip install tox - name: Running tox - run: tox -e py + run: tox -e py -- ${{ matrix.pytest-args }} coverage: runs-on: ubuntu-latest name: Validate coverage @@ -61,7 +69,7 @@ jobs: python-version: 3.8 architecture: x64 - run: pip install tox - - run: tox -e py38,coverage + - run: tox -e py38-cover,coverage docs: runs-on: ubuntu-latest name: Build the documentation |
