diff options
| -rw-r--r-- | .gitignore | 2 | ||||
| -rw-r--r-- | azure-pipelines.yml | 11 | ||||
| -rw-r--r-- | numpy/testing/_private/utils.py | 1 | ||||
| -rw-r--r-- | tools/azure-pypy-test.sh | 10 |
4 files changed, 24 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore index a31d6ea44..1b90490ff 100644 --- a/.gitignore +++ b/.gitignore @@ -176,3 +176,5 @@ benchmarks/numpy cythonize.dat numpy/random/mtrand/mtrand.c numpy/random/mtrand/randint_helpers.pxi +# CI run of PyPy +pypy3.5-latest diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 4e8a8d654..3fe8704f0 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -210,3 +210,14 @@ jobs: testResultsFiles: '**/test-*.xml' failTaskOnFailedTests: true testRunTitle: 'Publish test results for Python $(PYTHON_VERSION) $(BITS)-bit $(TEST_MODE) Windows' + +- job: Linux_PyPy3_latest_nightly + pool: + vmIMage: 'ubuntu-16.04' + steps: + - script: source tools/azure-pypy-test.sh + displayName: 'Run PyPy3.5 Build / Tests' + - task: PublishTestResults@2 + inputs: + testResultsFiles: '**/test-*.xml' + testRunTitle: 'Publish test results for PyPy3.5' diff --git a/numpy/testing/_private/utils.py b/numpy/testing/_private/utils.py index 1f7b516b3..3ace84415 100644 --- a/numpy/testing/_private/utils.py +++ b/numpy/testing/_private/utils.py @@ -2245,6 +2245,7 @@ def _assert_no_gc_cycles_context(name=None): # not meaningful to test if there is no refcounting if not HAS_REFCOUNT: + yield return assert_(gc.isenabled()) diff --git a/tools/azure-pypy-test.sh b/tools/azure-pypy-test.sh new file mode 100644 index 000000000..2194b724d --- /dev/null +++ b/tools/azure-pypy-test.sh @@ -0,0 +1,10 @@ +wget http://buildbot.pypy.org/nightly/py3.5/pypy-c-jit-latest-linux64.tar.bz2 -O pypy.tar.bz2 +mkdir -p pypy3.5-latest +(cd pypy3.5-latest; tar --strip-components=1 -xf ../pypy.tar.bz2) +pypy3.5-latest/bin/pypy3 -mensurepip +pypy3.5-latest/bin/pypy3 -m pip install --upgrade pip setuptools +pypy3.5-latest/bin/pypy3 -m pip install --user cython==0.29.0 pytest pytz +pypy3.5-latest/bin/pypy3 runtests.py -- -rsx --junitxml=junit/test-results.xml --durations 10 +# do not fail the CI run +echo '' + |
