Skip to content

Commit 2e1a2fe

Browse files
chore(test): run tests in parallel for speed (#66)
1 parent 9c4c126 commit 2e1a2fe

4 files changed

Lines changed: 27 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ jobs:
2424
- name: Type check
2525
run: uv run mypy src/
2626
- name: Test
27-
run: uv run pytest --cov=flameconnect --cov-report=term-missing --tb=short --cov-fail-under=95
27+
run: uv run pytest -n auto --cov=flameconnect --cov-report=term-missing --tb=short --cov-fail-under=95
2828
- name: Mutation test
2929
run: uv run mutmut run --max-children 4

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ repos:
2323
always_run: true
2424
- id: pytest
2525
name: pytest
26-
entry: uv run pytest --tb=short -q
26+
entry: uv run pytest -n auto --tb=short -q
2727
language: system
2828
types: [python]
2929
pass_filenames: false

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ dev = [
2929
"pytest-cov>=7.0.0",
3030
"mutmut>=3.5.0",
3131
"aioresponses>=0.7.8",
32+
"pytest-xdist>=3.8.0",
3233
]
3334

3435
[project.scripts]

uv.lock

Lines changed: 24 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)