| 
21 | 21 | variables:  | 
22 | 22 |  PYTEST_ADDOPTS: "-v -v -ra --showlocals"  | 
23 | 23 |  PYTEST_XDIST_PROC_NR: '0'  | 
 | 24 | + PRE_COMMIT_HOME: $(Pipeline.Workspace)/pre-commit-cache  | 
24 | 25 | 
 
  | 
25 | 26 | jobs:  | 
26 | 27 | - template: run-tox-env.yml@tox  | 
27 | 28 |  parameters:  | 
28 | 29 |  tox_version: ''  | 
29 | 30 |  jobs:  | 
30 |  | - fix_lint: null  | 
 | 31 | + fix_lint:  | 
 | 32 | + before:  | 
 | 33 | + - task: CacheBeta@0  | 
 | 34 | + displayName: cache pre-commit  | 
 | 35 | + inputs:  | 
 | 36 | + key: pre-commit | .pre-commit-config.yaml  | 
 | 37 | + path: $(PRE_COMMIT_HOME)  | 
31 | 38 |  docs: null  | 
32 | 39 |  py38:  | 
33 |  | - image: [linux]  | 
34 |  | - py37:  | 
35 | 40 |  image: [linux, windows, macOs]  | 
36 | 41 |  py27:  | 
37 | 42 |  image: [linux, windows, macOs]  | 
38 | 43 |  pypy:  | 
39 | 44 |  image: [linux]  | 
40 |  | - pypy3:  | 
41 |  | - image: [linux]  | 
 | 45 | + py37:  | 
 | 46 | + image: [linux, windows, macOs]  | 
42 | 47 |  py36:  | 
43 | 48 |  image: [linux, windows, macOs]  | 
44 | 49 |  py35:  | 
45 | 50 |  image: [linux, windows, macOs]  | 
46 |  | - py34:  | 
47 |  | - image: [linux, windows, macOs]  | 
 | 51 | + pypy3:  | 
 | 52 | + image: [linux]  | 
48 | 53 |  dev: null  | 
49 | 54 |  package_description: null  | 
50 | 55 |  coverage:  | 
51 | 56 |  with_toxenv: 'coverage' # generate .tox/.coverage, .tox/coverage.xml after test run  | 
52 |  | - for_envs: [py37, py36, py35, py34, py27]  | 
 | 57 | + for_envs: [py38, py37, py36, py35, py27, pypy3, pypy]  | 
53 | 58 | 
 
  | 
54 | 59 | - ${{ if startsWith(variables['Build.SourceBranch'], 'refs/tags/') }}:  | 
55 | 60 |  - template: publish-pypi.yml@tox  | 
 | 
0 commit comments