diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e91e720d..64c5199f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -429,14 +429,8 @@ jobs: python -m pip install . - name: run tests under pytest-run-parallel - if: runner.os == 'Windows' run: | - python -m pytest --parallel-threads=4 src/c - - - name: run tests under pytest-run-parallel - if: runner.os != 'Windows' - run: | - python -m pytest --parallel-threads=4 + python -m pytest --parallel-threads=4 --skip-thread-unsafe=True clang_TSAN: runs-on: ubuntu-latest diff --git a/testing/cffi1/test_function_args.py b/testing/cffi1/test_function_args.py index 30c6feda..4e7e8c3b 100644 --- a/testing/cffi1/test_function_args.py +++ b/testing/cffi1/test_function_args.py @@ -1,4 +1,9 @@ import pytest, sys + +pytestmark = [ + pytest.mark.thread_unsafe(reason="Workers would share a build directory"), +] + try: # comment out the following line to run this test. # the latest on x86-64 linux: https://github.com/libffi/libffi/issues/574