Skip to content

Commit 8fb2b26

Browse files
committed
Test Python thread safety with pytest-run-parallel
1 parent 9c6f3e1 commit 8fb2b26

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/integration.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,27 +25,27 @@ jobs:
2525
strategy:
2626
max-parallel: 15
2727
matrix:
28-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14', '3.14t', 'pypy-3.8', 'pypy-3.9', 'pypy-3.10', 'pypy-3.11']
28+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14', '3.14t', 'pypy-3.9', 'pypy-3.10', 'pypy-3.11']
2929
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
3030
fail-fast: false
3131
env:
3232
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
3333
name: Python ${{ matrix.python-version }} ${{matrix.os}}
3434
steps:
35-
- uses: actions/checkout@v4
35+
- uses: actions/checkout@v5
3636
with:
3737
submodules: recursive
38-
- uses: actions/setup-python@v5
38+
- uses: actions/setup-python@v6
3939
with:
4040
python-version: ${{ matrix.python-version }}
4141
cache: 'pip'
4242
cache-dependency-path: dev_requirements.txt
4343
- name: run tests
4444
run: |
45-
pip install -U pip setuptools wheel
45+
pip install --upgrade pip setuptools wheel
4646
pip install -r dev_requirements.txt
4747
python setup.py build_ext --inplace
48-
python -m pytest
48+
python -m pytest --iterations=8 --parallel-threads=auto
4949
- name: build and install the wheel
5050
run: |
5151
python setup.py bdist_wheel

dev_requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ black==24.3.0
22
flake8==4.0.1
33
isort==5.10.1
44
pytest>=7.0.0
5+
pytest-run-parallel>=0.7.1
56
setuptools
67
vulture>=2.3.0
78
wheel>=0.30.0

0 commit comments

Comments
 (0)