5252 python : " 3.5"
5353 os : windows-latest
5454 tox_env : " py35-xdist"
55+ use_coverage : true
5556 - name : " windows-py36"
5657 python : " 3.6"
5758 os : windows-latest
6869 python : " 3.8"
6970 os : windows-latest
7071 tox_env : " py38"
72+ use_coverage : true
7173
7274 - name : " ubuntu-py35"
7375 python : " 3.5"
8183 python : " 3.7"
8284 os : ubuntu-latest
8385 tox_env : " py37-lsof-numpy-oldattrs-pexpect-twisted"
86+ use_coverage : true
8487 - name : " ubuntu-py37-pluggy"
8588 python : " 3.7"
8689 os : ubuntu-latest
8992 python : " 3.7"
9093 os : ubuntu-latest
9194 tox_env : " py37-freeze"
92- # coverage does not apply for freeze test, skip it
93- skip_coverage : true
9495 - name : " ubuntu-py38"
9596 python : " 3.8"
9697 os : ubuntu-latest
99100 python : " pypy3"
100101 os : ubuntu-latest
101102 tox_env : " pypy3-xdist"
102- # coverage too slow with pypy3, skip it
103- skip_coverage : true
104103
105104 - name : " macos-py37"
106105 python : " 3.7"
@@ -110,21 +109,21 @@ jobs:
110109 python : " 3.8"
111110 os : macos-latest
112111 tox_env : " py38-xdist"
112+ use_coverage : true
113113
114114 - name : " linting"
115115 python : " 3.7"
116116 os : ubuntu-latest
117117 tox_env : " linting"
118- skip_coverage : true
119118 - name : " docs"
120119 python : " 3.7"
121120 os : ubuntu-latest
122121 tox_env : " docs"
123- skip_coverage : true
124122 - name : " doctesting"
125123 python : " 3.7"
126124 os : ubuntu-latest
127125 tox_env : " doctesting"
126+ use_coverage : true
128127
129128 steps :
130129 - uses : actions/checkout@v1
@@ -138,24 +137,24 @@ jobs:
138137 pip install tox coverage
139138
140139 - name : Test without coverage
141- if : " matrix.skip_coverage "
140+ if : " ! matrix.use_coverage "
142141 run : " tox -e ${{ matrix.tox_env }}"
143142
144143 - name : Test with coverage
145- if : " ! matrix.skip_coverage "
144+ if : " matrix.use_coverage "
146145 env :
147146 _PYTEST_TOX_COVERAGE_RUN : " coverage run -m"
148147 COVERAGE_PROCESS_START : " .coveragerc"
149148 _PYTEST_TOX_EXTRA_DEP : " coverage-enable-subprocess"
150149 run : " tox -e ${{ matrix.tox_env }}"
151150
152151 - name : Prepare coverage token
153- if : (! matrix.skip_coverage && ( github.repository == 'pytest-dev/pytest' || github.event_name == 'pull_request' ))
152+ if : (matrix.use_coverage && ( github.repository == 'pytest-dev/pytest' || github.event_name == 'pull_request' ))
154153 run : |
155154 python scripts/append_codecov_token.py
156155
157156 - name : Report coverage
158- if : (! matrix.skip_coverage )
157+ if : (matrix.use_coverage )
159158 env :
160159 CODECOV_NAME : ${{ matrix.name }}
161160 run : bash scripts/report-coverage.sh -F GHA,${{ runner.os }}
0 commit comments