Skip to content

Commit fc38859

Browse files
authored
Run more pypy versions in CI but without coverage (#224)
1 parent 995c93e commit fc38859

File tree

2 files changed

+19
-12
lines changed

2 files changed

+19
-12
lines changed

.github/workflows/check.yml

+17-8
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ jobs:
1919
py:
2020
- "3.11"
2121
- "3.10"
22-
- "pypy3.9"
2322
- "3.9"
2423
- "3.8"
2524
- "3.7"
25+
- "pypy3.9"
26+
- "pypy3.8"
27+
- "pypy3.7"
2628
os:
2729
- ubuntu-22.04
2830
- windows-2022
2931
- macos-12
30-
exclude:
31-
- { os: windows-2022, py: "pypy3.9" }
3232

3333
steps:
3434
- name: Setup python for tox
@@ -53,19 +53,28 @@ jobs:
5353
file_handler.write(env)
5454
shell: python
5555
- name: Setup test suite
56-
run: tox -vv --notest
57-
- name: Run test suite
58-
run: tox --skip-pkg-install
56+
run: tox r -vv --notest
57+
- if: ${{ startsWith(matrix.py, 'pypy') }}
58+
name: Run test suite
59+
run: tox r --skip-pkg-install --
60+
env:
61+
PYTEST_ADDOPTS: "-vv --durations=20"
62+
CI_RUN: "yes"
63+
- if: ${{ !startsWith(matrix.py, 'pypy')}}
64+
name: Run test suite
65+
run: tox r --skip-pkg-install
5966
env:
6067
PYTEST_ADDOPTS: "-vv --durations=20"
6168
CI_RUN: "yes"
6269
DIFF_AGAINST: HEAD
63-
- name: Rename coverage report file
70+
- if: ${{ !startsWith(matrix.py, 'pypy')}}
71+
name: Rename coverage report file
6472
run: |
6573
import os; import sys
6674
os.rename(f".tox/.coverage.{os.environ['TOXENV']}", f".tox/.coverage.{os.environ['TOXENV']}-{sys.platform}")
6775
shell: python
68-
- name: Upload coverage data
76+
- if: ${{ !startsWith(matrix.py, 'pypy')}}
77+
name: Upload coverage data
6978
uses: actions/upload-artifact@v3
7079
with:
7180
name: coverage-data

tox.ini

+2-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ envlist =
77
py39
88
py38
99
py37
10-
pypy3
1110
type
1211
coverage
1312
docs
@@ -30,8 +29,8 @@ commands =
3029
--junitxml {toxworkdir}{/}junit.{envname}.xml --cov {envsitepackagesdir}{/}filelock --cov {toxinidir}{/}tests \
3130
--cov-config=pyproject.toml --no-cov-on-fail --cov-report term-missing:skip-covered --cov-context=test \
3231
--cov-report html:{envtmpdir}{/}htmlcov --cov-report xml:{toxworkdir}{/}coverage.{envname}.xml \
33-
tests}
34-
diff-cover --compare-branch {env:DIFF_AGAINST:origin/main} {toxworkdir}{/}coverage.{envname}.xml
32+
tests
33+
diff-cover --compare-branch {env:DIFF_AGAINST:origin/main} {toxworkdir}{/}coverage.{envname}.xml}
3534

3635
[testenv:fix]
3736
description = format the code base to adhere to our styles, and complain about what we cannot do automatically
@@ -80,7 +79,6 @@ depends =
8079
py37
8180
py38
8281
py39
83-
pypy3
8482

8583
[testenv:docs]
8684
description = build documentation

0 commit comments

Comments
 (0)