diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cc00291..7f2c42e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -45,6 +45,9 @@ jobs: run: | uv pip install pytest pytest-mock pytest-asyncio pytest-cov uv run pytest + env: + PYTEST_RABBITMQ_CTL: '/usr/lib/rabbitmq/bin/rabbitmqctl' + PYTEST_RABBITMQ_SERVER: '/usr/lib/rabbitmq/bin/rabbitmq-server' - name: Upload coverage to Codecov uses: codecov/codecov-action@v5 diff --git a/src/lvmopstools/pubsub.py b/src/lvmopstools/pubsub.py index 301dc1d..efa1b93 100644 --- a/src/lvmopstools/pubsub.py +++ b/src/lvmopstools/pubsub.py @@ -21,13 +21,13 @@ Callable, ClassVar, Literal, - Self, overload, ) import aio_pika from aio_pika.abc import AbstractIncomingMessage from pydantic import BaseModel, Field +from typing_extensions import Self from lvmopstools import config from lvmopstools.retrier import Retrier