Skip to content

Commit 41f8c10

Browse files
committed
Parallelize tests
1 parent 6c52551 commit 41f8c10

3 files changed

Lines changed: 84 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
git version
6060
git tag -l --sort=-creatordate --merged
6161
mkdir reports/
62-
coverage run -m pytest -m ${{ matrix.mark }}
62+
coverage run -m pytest -n auto -m ${{ matrix.mark }}
6363
6464
- name: Upload coverage results
6565
uses: actions/upload-artifact@v6

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ test = [
6767
"coverage>=7.2.7",
6868
"pytest>=7.4.4",
6969
"pytest-rerunfailures>=13.0",
70+
"pytest-xdist>=3.5.0",
7071
# Some tests need to write TOML, but tomli and tomllib are read-only, and toml package is unmaintained
7172
"tomli-w>=1.0.0",
7273
"wheel>=0.42.0",

uv.lock

Lines changed: 82 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)