diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..1b74931 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -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 diff --git a/test/test_egrpc.py b/test/test_egrpc.py index fd19132..625fdab 100644 --- a/test/test_egrpc.py +++ b/test/test_egrpc.py @@ -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():