Skip to content

Commit 21ed7b1

Browse files
committed
Add pypy and pypy3 envs
1 parent 030d274 commit 21ed7b1

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

azure-pipelines.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ trigger:
55
variables:
66
PYTEST_ADDOPTS: "--junitxml=build/test-results/$(tox.env).xml"
77
python.needs_vc: False
8+
python.exe: "python"
89

910
jobs:
1011

@@ -56,6 +57,14 @@ jobs:
5657
py37-freeze:
5758
python.version: '3.7'
5859
tox.env: 'py37-freeze'
60+
pypy:
61+
python.version: 'pypy'
62+
tox.env: 'pypy'
63+
python.exe: 'pypy'
64+
pypy3:
65+
python.version: 'pypy3'
66+
tox.env: 'pypy3'
67+
python.exe: 'pypy3'
5968
maxParallel: 10
6069

6170
steps:
@@ -68,10 +77,10 @@ jobs:
6877
condition: eq(variables['python.needs_vc'], True)
6978
displayName: 'Install VC for py27'
7079

71-
- script: python -m pip install --upgrade pip && pip install tox
80+
- script: $(python.exe) -m pip install --upgrade pip && pip install tox
7281
displayName: 'Install tox'
7382

74-
- script: python -m tox -e $(tox.env)
83+
- script: $(python.exe) -m tox -e $(tox.env)
7584
displayName: 'Run tests'
7685

7786
- task: PublishTestResults@2

tox.ini

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ envlist =
1212
py37
1313
py38
1414
pypy
15+
pypy3
1516
{py27,py37}-{pexpect,xdist,trial,numpy,pluggymaster}
1617
py27-nobyte
1718
doctesting

0 commit comments

Comments
 (0)