File tree 2 files changed +19
-12
lines changed
2 files changed +19
-12
lines changed Original file line number Diff line number Diff line change @@ -19,16 +19,16 @@ jobs:
19
19
py :
20
20
- " 3.11"
21
21
- " 3.10"
22
- - " pypy3.9"
23
22
- " 3.9"
24
23
- " 3.8"
25
24
- " 3.7"
25
+ - " pypy3.9"
26
+ - " pypy3.8"
27
+ - " pypy3.7"
26
28
os :
27
29
- ubuntu-22.04
28
30
- windows-2022
29
31
- macos-12
30
- exclude :
31
- - { os: windows-2022, py: "pypy3.9" }
32
32
33
33
steps :
34
34
- name : Setup python for tox
@@ -53,19 +53,28 @@ jobs:
53
53
file_handler.write(env)
54
54
shell : python
55
55
- 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
59
66
env :
60
67
PYTEST_ADDOPTS : " -vv --durations=20"
61
68
CI_RUN : " yes"
62
69
DIFF_AGAINST : HEAD
63
- - name : Rename coverage report file
70
+ - if : ${{ !startsWith(matrix.py, 'pypy')}}
71
+ name : Rename coverage report file
64
72
run : |
65
73
import os; import sys
66
74
os.rename(f".tox/.coverage.{os.environ['TOXENV']}", f".tox/.coverage.{os.environ['TOXENV']}-{sys.platform}")
67
75
shell : python
68
- - name : Upload coverage data
76
+ - if : ${{ !startsWith(matrix.py, 'pypy')}}
77
+ name : Upload coverage data
69
78
uses : actions/upload-artifact@v3
70
79
with :
71
80
name : coverage-data
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ envlist =
7
7
py39
8
8
py38
9
9
py37
10
- pypy3
11
10
type
12
11
coverage
13
12
docs
@@ -30,8 +29,8 @@ commands =
30
29
--junitxml {toxworkdir}{/}junit.{envname}.xml --cov {envsitepackagesdir}{/}filelock --cov {toxinidir}{/}tests \
31
30
--cov-config =pyproject.toml --no-cov-on-fail --cov-report term-missing:skip-covered --cov-context =test \
32
31
--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}
35
34
36
35
[testenv:fix]
37
36
description = format the code base to adhere to our styles, and complain about what we cannot do automatically
@@ -80,7 +79,6 @@ depends =
80
79
py37
81
80
py38
82
81
py39
83
- pypy3
84
82
85
83
[testenv:docs]
86
84
description = build documentation
You can’t perform that action at this time.
0 commit comments