diff options
author | davfsa <davfsa@gmail.com> | 2021-04-30 20:36:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-30 20:36:43 +0200 |
commit | a35bd75c54b2f0d7afa3d5f44c09a80cdc7e516d (patch) | |
tree | 72549af747a82f2ceffce673b82f91c118baf1eb /tests/build | |
parent | 6af5d01e884e003fc0af44102b5638241e43f548 (diff) | |
download | cython-a35bd75c54b2f0d7afa3d5f44c09a80cdc7e516d.tar.gz |
Switch to github actions (GH-3943)
Diffstat (limited to 'tests/build')
-rw-r--r-- | tests/build/common_include_dir.srctree | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/build/common_include_dir.srctree b/tests/build/common_include_dir.srctree index 0b3e4f36f..2ab4662c0 100644 --- a/tests/build/common_include_dir.srctree +++ b/tests/build/common_include_dir.srctree @@ -16,18 +16,17 @@ PYTHON fake_grep.py -c '#include "common/AddTraceback_impl_.*h"' c.c import sys from Cython.Build.Dependencies import cythonize -import platform import os from distutils.core import setup -# os x on Travis specifically seems to crash with nthreads>0 -osx_on_travis = (platform.system() == "Darwin" and os.getenv("TRAVIS")) +# os x on CI specifically seems to crash with nthreads>0 +osx_on_ci = (sys.platform == "darwin" and os.getenv("CI")) # Test concurrent safety if multiprocessing is available. -# (In particular, TravisCI does not support spawning processes from tests.) +# (In particular, CI providers like Travis and Github Actions do not support spawning processes from tests.) nthreads = 0 -if not (hasattr(sys, 'pypy_version_info') or osx_on_travis): +if not (hasattr(sys, 'pypy_version_info') or osx_on_ci): try: import multiprocessing multiprocessing.Pool(2).close() |