Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,31 @@ jobs:
echo " pre-commit run --all-files --hook-stage=manual"

test:
name: Run tests on ${{ matrix.os }}
name: Run tests on ${{ matrix.os }} python-${{ matrix.python-version }}
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- '3.13'
- 'pypy3.9'
- 'pypy3.10'
- 'pypy3.11'
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install mamba
uses: mamba-org/setup-micromamba@v1
- uses: actions/setup-node@v4
- uses: actions/setup-python@v5
with:
environment-file: environment-dev.yml
environment-name: pycrdt-websocket
extra-specs: python=${{ matrix.python-version }}
python-version: ${{ matrix.python-version }}
- name: Ensure pip >= v25.1
run: python -m pip install "pip >= 25.1"
- name: Install dependencies
Expand Down
6 changes: 0 additions & 6 deletions environment-dev.yml

This file was deleted.

4 changes: 3 additions & 1 deletion tests/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from anyio import Lock, connect_tcp, create_memory_object_stream

from pycrdt import Array, Doc
Expand Down Expand Up @@ -62,7 +64,7 @@ async def recv(self) -> bytes:


class ClientWebsocket:
def __init__(self, server_websocket: "ServerWebsocket"):
def __init__(self, server_websocket: ServerWebsocket):
self.server_websocket = server_websocket
self.send_stream, self.receive_stream = create_memory_object_stream[bytes](65536)

Expand Down
Loading