diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2021-07-26 09:00:19 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2021-07-26 10:05:36 +0200 |
commit | da9775ff6564112849b938d5a750a8b10406c969 (patch) | |
tree | 07e86a89a152ab0f4a0c50e60dc54de3a939c450 | |
parent | 03e919a06007a8ce0d77eefb52a5ec697c70ef4f (diff) | |
download | cython-da9775ff6564112849b938d5a750a8b10406c969.tar.gz |
Add CI jobs that compile more Cython modules with "--cython-compile-all", to make sure that this keeps working and to allow comparing the performance difference.
-rw-r--r-- | .github/workflows/ci.yml | 21 | ||||
-rw-r--r-- | Tools/ci-run.sh | 3 |
2 files changed, 23 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b065e8daa..c885c4419 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,6 +46,27 @@ jobs: backend: cpp env: { GCC_VERSION: 11 } extra_hash: "-gcc11" + # compile all modules + - os: ubuntu-18.04 + python-version: 2.7 + backend: c + env: { CYTHON_COMPILE_ALL: 1 } + extra_hash: "-all" + - os: ubuntu-18.04 + python-version: 2.7 + backend: cpp + env: { CYTHON_COMPILE_ALL: 1 } + extra_hash: "-all" + - os: ubuntu-18.04 + python-version: 3.9 + backend: c + env: { CYTHON_COMPILE_ALL: 1 } + extra_hash: "-all" + - os: ubuntu-18.04 + python-version: 3.9 + backend: cpp + env: { CYTHON_COMPILE_ALL: 1 } + extra_hash: "-all" # Linting - os: ubuntu-18.04 python-version: 3.7 diff --git a/Tools/ci-run.sh b/Tools/ci-run.sh index 2699db23b..e4f39eba9 100644 --- a/Tools/ci-run.sh +++ b/Tools/ci-run.sh @@ -97,9 +97,10 @@ if [ "$NO_CYTHON_COMPILE" != "1" -a -n "${PYTHON_VERSION##pypy*}" ]; then CFLAGS="-O2 -ggdb -Wall -Wextra $(python -c 'import sys; print("-fno-strict-aliasing" if sys.version_info[0] == 2 else "")')" \ python setup.py build_ext -i \ $(if [ "$COVERAGE" == "1" ]; then echo " --cython-coverage"; fi) \ + $(if [ "$CYTHON_COMPILE_ALL" == "1" ]; then echo " --cython-compile-all"; fi) \ $(python -c 'import sys; print("-j5" if sys.version_info >= (3,5) else "")') \ || exit 1 - if [ -z "$COVERAGE" -a -z "$STACKLESS" -a -z "$LIMITED_API" -a -z "$EXTRA_CFLAGS" -a -n "${BACKEND//*cpp*}" ]; then + if [ -z "$COVERAGE" -a -z "$STACKLESS" -a -z "$LIMITED_API" -a -z "$CYTHON_COMPILE_ALL" -a -z "$EXTRA_CFLAGS" -a -n "${BACKEND//*cpp*}" ]; then python setup.py bdist_wheel || exit 1 fi fi |