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
21 changes: 21 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: CI

on:
push:
pull_request:

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12", "3.13", "3.14"]
env:
UV_PYTHON: ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v5
- uses: astral-sh/setup-uv@v7
- run: uv sync
- run: uv run pytest -v
- run: uv run mypy --strict src/ test/
- run: uv run ruff check
4 changes: 2 additions & 2 deletions test/test_egrpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ def dcfunc2(d1: Data, d2: Data) -> bool:
def test_dataclass(server: Any) -> None:
d = Data(3, 2.2)
assert dcfunc1(d) == pytest.approx(3 * 2.2)
assert dcfunc2(d, d) == True
assert dcfunc2(d, Data(2, 2.2)) == False
assert dcfunc2(d, d) is True
assert dcfunc2(d, Data(2, 2.2)) is False

@egrpc.remoteclass
class Point():
Expand Down
Loading