github/workflows: Add new CI job to test unix port with GIL enabled.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George 2025-07-13 22:42:17 +10:00
parent b6460df721
commit b15065b95e
2 changed files with 21 additions and 0 deletions

View File

@ -160,6 +160,18 @@ jobs:
if: failure()
run: tests/run-tests.py --print-failures
gil_enabled:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: source tools/ci.sh && ci_unix_gil_enabled_build
- name: Run main test suite
run: source tools/ci.sh && ci_unix_gil_enabled_run_tests
- name: Print failures
if: failure()
run: tests/run-tests.py --print-failures
stackless_clang:
runs-on: ubuntu-latest
steps:

View File

@ -707,6 +707,15 @@ function ci_unix_float_run_tests {
ci_unix_run_tests_helper CFLAGS_EXTRA="-DMICROPY_FLOAT_IMPL=MICROPY_FLOAT_IMPL_FLOAT"
}
function ci_unix_gil_enabled_build {
ci_unix_build_helper VARIANT=standard MICROPY_PY_THREAD_GIL=1
ci_unix_build_ffi_lib_helper gcc
}
function ci_unix_gil_enabled_run_tests {
ci_unix_run_tests_full_helper standard MICROPY_PY_THREAD_GIL=1
}
function ci_unix_clang_setup {
sudo apt-get update
sudo apt-get install clang