Improve CI workflow · pytest-dev/pytest@7855a72 (original) (raw)

`@@ -27,7 +27,19 @@ concurrency:

`

27

27

`permissions: {}

`

28

28

``

29

29

`jobs:

`

``

30

`+

package:

`

``

31

`+

runs-on: ubuntu-latest

`

``

32

`+

steps:

`

``

33

`+

`

``

34

`+

with:

`

``

35

`+

fetch-depth: 0

`

``

36

`+

persist-credentials: false

`

``

37

`+

`

``

38

`+

uses: hynek/build-and-inspect-python-package@v1.5

`

``

39

+

30

40

`build:

`

``

41

`+

needs: [package]

`

``

42

+

31

43

`runs-on: ${{ matrix.os }}

`

32

44

`timeout-minutes: 45

`

33

45

`permissions:

`

60

72

`"macos-py310",

`

61

73

`"macos-py312",

`

62

74

``

63

``

`-

"docs",

`

64

75

`"doctesting",

`

65

76

`"plugins",

`

66

77

`]

`

`@@ -159,10 +170,6 @@ jobs:

`

159

170

`os: ubuntu-latest

`

160

171

`tox_env: "plugins"

`

161

172

``

162

``

`-

`

163

``

`-

python: "3.7"

`

164

``

`-

os: ubuntu-latest

`

165

``

`-

tox_env: "docs"

`

166

173

` - name: "doctesting"

`

167

174

`python: "3.7"

`

168

175

`os: ubuntu-latest

`

`@@ -175,6 +182,12 @@ jobs:

`

175

182

`fetch-depth: 0

`

176

183

`persist-credentials: false

`

177

184

``

``

185

`+

`

``

186

`+

uses: actions/download-artifact@v3

`

``

187

`+

with:

`

``

188

`+

name: Packages

`

``

189

`+

path: dist

`

``

190

+

178

191

` - name: Set up Python ${{ matrix.python }}

`

179

192

`uses: actions/setup-python@v4

`

180

193

`with:

`

`@@ -188,11 +201,13 @@ jobs:

`

188

201

``

189

202

` - name: Test without coverage

`

190

203

`if: "! matrix.use_coverage"

`

191

``

`-

run: "tox -e ${{ matrix.tox_env }}"

`

``

204

`+

shell: bash

`

``

205

`` +

run: tox run -e ${{ matrix.tox_env }} --installpkg find dist/*.tar.gz

``

192

206

``

193

207

` - name: Test with coverage

`

194

208

`if: "matrix.use_coverage"

`

195

``

`-

run: "tox -e ${{ matrix.tox_env }}-coverage"

`

``

209

`+

shell: bash

`

``

210

`` +

run: tox run -e ${{ matrix.tox_env }}-coverage --installpkg find dist/*.tar.gz

``

196

211

``

197

212

` - name: Generate coverage report

`

198

213

`if: "matrix.use_coverage"

`

`@@ -206,10 +221,3 @@ jobs:

`

206

221

`fail_ci_if_error: true

`

207

222

`files: ./coverage.xml

`

208

223

`verbose: true

`

209

``

-

210

``

`-

check-package:

`

211

``

`-

runs-on: ubuntu-latest

`

212

``

`-

steps:

`

213

``

`-

`

214

``

`-

`

215

``

`-

uses: hynek/build-and-inspect-python-package@v1.5

`