Skip to content

Commit

Permalink
chore: re-enabled all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Goldziher committed Feb 16, 2025
1 parent 0226306 commit 6fece7e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,8 @@ jobs:
test:
strategy:
matrix:
os: [ ubuntu-latest ]
python: [ 3.9 ]
#os: [ ubuntu-latest, macOS-latest, windows-latest ]
#python: [ 3.9, 3.10, 3.11, 3.12, 3.13 ]
os: [ ubuntu-latest, macOS-latest, windows-latest ]
python: [ 3.9, 3.10, 3.11, 3.12, 3.13 ]
runs-on: ${{ matrix.os }}
timeout-minutes: 5
steps:
Expand Down Expand Up @@ -122,5 +120,4 @@ jobs:
pandoc --version
- name: Run Tests
run: uv run pytest tests/extraction_test.py::test_extract_bytes_pdf -vvv -s
#run: uv run pytest tests -vvv -n auto --dist=loadfile
run: uv run pytest tests -v -n auto --dist=loadfile
2 changes: 1 addition & 1 deletion kreuzberg/_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
from multiprocessing import cpu_count
from typing import Final

DEFAULT_MAX_PROCESSES: Final[int] = max(cpu_count(), 1)
DEFAULT_MAX_PROCESSES: Final[int] = max(cpu_count() // 2, 1)
2 changes: 1 addition & 1 deletion kreuzberg/_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ async def run_sync(sync_fn: Callable[P, T], *args: P.args, **kwargs: P.kwargs) -
The result of the synchronous function.
"""
handler = partial(sync_fn, **kwargs)
return cast(T, await any_io_run_sync(handler, *args, cancellable=True)) # pyright: ignore [reportCallIssue]
return cast(T, await any_io_run_sync(handler, *args, abandon_on_cancel=True)) # pyright: ignore [reportCallIssue]

0 comments on commit 6fece7e

Please sign in to comment.