Skip to content

Commit 3c61e14

Browse files
authored
Enable more Windows pytest-run-parallel CI (#189)
* enable windows pytest-run-parallel CI * pass skip-thread-unsafe * remove OS conditional
1 parent 078820c commit 3c61e14

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -429,14 +429,8 @@ jobs:
429429
python -m pip install .
430430
431431
- name: run tests under pytest-run-parallel
432-
if: runner.os == 'Windows'
433432
run: |
434-
python -m pytest --parallel-threads=4 src/c
435-
436-
- name: run tests under pytest-run-parallel
437-
if: runner.os != 'Windows'
438-
run: |
439-
python -m pytest --parallel-threads=4
433+
python -m pytest --parallel-threads=4 --skip-thread-unsafe=True
440434
441435
clang_TSAN:
442436
runs-on: ubuntu-latest

testing/cffi1/test_function_args.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
import pytest, sys
2+
3+
pytestmark = [
4+
pytest.mark.thread_unsafe(reason="Workers would share a build directory"),
5+
]
6+
27
try:
38
# comment out the following line to run this test.
49
# the latest on x86-64 linux: https://github.com/libffi/libffi/issues/574

0 commit comments

Comments
 (0)