repid 2.2.0a1__tar.gz → 2.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (281) hide show
  1. {repid-2.2.0a1 → repid-2.2.1}/.devcontainer/devcontainer.json +3 -4
  2. repid-2.2.1/.github/dependabot.yml +37 -0
  3. repid-2.2.1/.github/workflows/actions.lock +102 -0
  4. {repid-2.2.0a1 → repid-2.2.1}/.github/workflows/codeql.yml +6 -4
  5. {repid-2.2.0a1 → repid-2.2.1}/.github/workflows/dependency-review.yml +5 -3
  6. repid-2.2.1/.github/workflows/docs.yml +89 -0
  7. repid-2.2.1/.github/workflows/prek.yml +32 -0
  8. repid-2.2.1/.github/workflows/release.yaml +53 -0
  9. repid-2.2.1/.github/workflows/tests.yaml +226 -0
  10. repid-2.2.1/.github/workflows/typecheck.yml +35 -0
  11. repid-2.2.1/.github/workflows/workflow-lint.yml +41 -0
  12. {repid-2.2.0a1 → repid-2.2.1}/.gitignore +1 -0
  13. {repid-2.2.0a1 → repid-2.2.1}/.pre-commit-config.yaml +6 -12
  14. {repid-2.2.0a1 → repid-2.2.1}/Makefile +2 -2
  15. {repid-2.2.0a1 → repid-2.2.1}/PKG-INFO +6 -6
  16. {repid-2.2.0a1 → repid-2.2.1}/SECURITY.md +9 -0
  17. repid-2.2.1/docs/advanced_user_guide/your_own_brokers.md +128 -0
  18. {repid-2.2.0a1 → repid-2.2.1}/docs/advanced_user_guide/your_own_converter.md +6 -8
  19. {repid-2.2.0a1 → repid-2.2.1}/docs/contributing.md +7 -12
  20. {repid-2.2.0a1 → repid-2.2.1}/docs/cookbook/middlewares.md +2 -2
  21. {repid-2.2.0a1 → repid-2.2.1}/docs/getting_started/quickstart.md +18 -0
  22. {repid-2.2.0a1 → repid-2.2.1}/docs/index.md +1 -1
  23. {repid-2.2.0a1 → repid-2.2.1}/docs/integrations/fastapi_and_pydantic.md +1 -1
  24. {repid-2.2.0a1 → repid-2.2.1}/docs/user_guide/actors/routers.md +0 -16
  25. {repid-2.2.0a1 → repid-2.2.1}/docs/user_guide/dependency_injection.md +4 -4
  26. repid-2.2.1/docs/user_guide/workers/concurrency.md +31 -0
  27. {repid-2.2.0a1 → repid-2.2.1}/docs/user_guide/workers/index.md +1 -1
  28. {repid-2.2.0a1 → repid-2.2.1}/pyproject.toml +43 -45
  29. {repid-2.2.0a1 → repid-2.2.1}/repid/__init__.py +0 -12
  30. repid-2.2.1/repid/_runner.py +410 -0
  31. repid-2.2.1/repid/_utils/_typing.py +8 -0
  32. {repid-2.2.0a1 → repid-2.2.1}/repid/_utils/asyncify_.py +4 -2
  33. {repid-2.2.0a1 → repid-2.2.1}/repid/_utils/json_encoder.py +3 -1
  34. {repid-2.2.0a1 → repid-2.2.1}/repid/_worker.py +15 -46
  35. {repid-2.2.0a1 → repid-2.2.1}/repid/asyncapi/generator.py +4 -4
  36. {repid-2.2.0a1 → repid-2.2.1}/repid/asyncapi/models/asyncapi.py +1 -7
  37. repid-2.2.1/repid/asyncapi/models/common/correlation_id.py +6 -0
  38. repid-2.2.1/repid/asyncapi/models/common/external_docs.py +8 -0
  39. {repid-2.2.0a1 → repid-2.2.1}/repid/asyncapi/models/common/message.py +1 -7
  40. {repid-2.2.0a1 → repid-2.2.1}/repid/asyncapi/models/common/tag.py +1 -7
  41. {repid-2.2.0a1 → repid-2.2.1}/repid/asyncapi/models/info.py +1 -7
  42. {repid-2.2.0a1 → repid-2.2.1}/repid/asyncapi/models/operations.py +1 -7
  43. {repid-2.2.0a1 → repid-2.2.1}/repid/asyncapi/models/servers.py +1 -7
  44. {repid-2.2.0a1 → repid-2.2.1}/repid/asyncapi_server.py +8 -3
  45. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/__init__.py +0 -2
  46. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/abc.py +7 -23
  47. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/amqp/_uamqp/_decode.py +2 -2
  48. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/amqp/_uamqp/_encode.py +7 -12
  49. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/amqp/_uamqp/endpoints.py +8 -6
  50. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/amqp/_uamqp/outcomes.py +4 -1
  51. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/amqp/_uamqp/performatives.py +6 -6
  52. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/amqp/message_broker.py +4 -19
  53. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/amqp/protocol/connection.py +2 -4
  54. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/amqp/protocol/links.py +13 -8
  55. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/amqp/protocol/session.py +2 -2
  56. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/amqp/protocol/transport.py +2 -4
  57. repid-2.2.1/repid/connections/amqp/subscriber.py +173 -0
  58. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/in_memory/message_broker.py +64 -107
  59. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/kafka/message.py +0 -2
  60. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/kafka/message_broker.py +7 -16
  61. repid-2.2.1/repid/connections/kafka/subscriber.py +168 -0
  62. repid-2.2.1/repid/connections/nats/message_broker.py +497 -0
  63. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/pubsub/message_broker.py +9 -21
  64. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/pubsub/protocol/_helpers.py +0 -2
  65. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/pubsub/protocol/proto.py +1 -1
  66. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/pubsub/protocol/subscriber.py +75 -192
  67. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/redis/message_broker.py +315 -295
  68. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/sqs/message.py +2 -4
  69. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/sqs/message_broker.py +5 -30
  70. repid-2.2.1/repid/connections/sqs/subscriber.py +333 -0
  71. {repid-2.2.0a1 → repid-2.2.1}/repid/converter.py +17 -14
  72. {repid-2.2.0a1 → repid-2.2.1}/repid/data/actor.py +1 -4
  73. {repid-2.2.0a1 → repid-2.2.1}/repid/data/channel.py +0 -15
  74. {repid-2.2.0a1 → repid-2.2.1}/repid/dependencies/depends.py +4 -4
  75. {repid-2.2.0a1 → repid-2.2.1}/repid/health_check_server.py +6 -1
  76. {repid-2.2.0a1 → repid-2.2.1}/repid/main.py +6 -66
  77. {repid-2.2.0a1 → repid-2.2.1}/repid/middlewares.py +3 -3
  78. {repid-2.2.0a1 → repid-2.2.1}/repid/router.py +26 -96
  79. {repid-2.2.0a1 → repid-2.2.1}/repid/test_client.py +4 -11
  80. repid-2.2.1/tests/integration/asyncapi/package-lock.json +18002 -0
  81. repid-2.2.1/tests/integration/asyncapi/package.json +7 -0
  82. repid-2.2.1/tests/integration/brokers.py +327 -0
  83. repid-2.2.1/tests/integration/conftest.py +117 -0
  84. {repid-2.2.0a1 → repid-2.2.1}/tests/integration/test_asyncapi_compatibility.py +53 -28
  85. {repid-2.2.0a1 → repid-2.2.1}/tests/integration/test_default_flow.py +4 -10
  86. {repid-2.2.0a1 → repid-2.2.1}/tests/integration/test_kafka_specific.py +32 -37
  87. {repid-2.2.0a1 → repid-2.2.1}/tests/integration/test_nats_specific.py +36 -153
  88. {repid-2.2.0a1 → repid-2.2.1}/tests/integration/test_rabbitmq_specific.py +15 -33
  89. repid-2.2.1/tests/integration/test_redis_specific.py +307 -0
  90. {repid-2.2.0a1 → repid-2.2.1}/tests/integration/test_sqs_specific.py +236 -228
  91. {repid-2.2.0a1 → repid-2.2.1}/tests/integration/test_worker.py +8 -21
  92. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/amqp/conftest.py +1 -1
  93. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/amqp/test_amqp_transport.py +1 -1
  94. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/amqp/test_connection.py +4 -4
  95. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/amqp/test_encoding_decoding.py +16 -16
  96. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/amqp/test_links.py +18 -38
  97. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/amqp/test_managed.py +2 -2
  98. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/amqp/test_managed_pools.py +1 -1
  99. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/amqp/test_message_broker.py +27 -545
  100. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/amqp/test_session.py +10 -10
  101. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/amqp/test_state_machine.py +6 -4
  102. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/amqp/test_uamqp_types.py +2 -2
  103. repid-2.2.1/tests/unit/in_memory/test_message_broker.py +490 -0
  104. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/in_memory/test_utils.py +1 -1
  105. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/pubsub/protocol/test_helpers_internal.py +0 -2
  106. repid-2.2.1/tests/unit/pubsub/protocol/test_subscriber.py +733 -0
  107. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/pubsub/protocol/test_subscriber_execution.py +15 -29
  108. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/pubsub/test_message_broker.py +4 -12
  109. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/redis/test_message_broker.py +823 -1095
  110. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/redis/test_redis_keep_alive.py +11 -2
  111. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/sqs/test_message.py +1 -1
  112. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/test_asyncapi_generator.py +1 -1
  113. repid-2.2.1/tests/unit/test_channel.py +19 -0
  114. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/test_converter.py +51 -48
  115. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/test_dependencies.py +5 -5
  116. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/test_health_check_server.py +4 -4
  117. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/test_main.py +6 -6
  118. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/test_middleware.py +17 -17
  119. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/test_router.py +12 -140
  120. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/test_runner.py +172 -220
  121. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/test_runner_manual_explicit.py +1 -1
  122. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/test_test_client.py +2 -14
  123. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/test_worker.py +30 -152
  124. repid-2.2.1/uv.lock +2461 -0
  125. repid-2.2.1/zensical.toml +124 -0
  126. repid-2.2.0a1/.github/dependabot.yml +0 -20
  127. repid-2.2.0a1/.github/workflows/docs.yml +0 -33
  128. repid-2.2.0a1/.github/workflows/mypy.yml +0 -27
  129. repid-2.2.0a1/.github/workflows/release.yaml +0 -29
  130. repid-2.2.0a1/.github/workflows/tests.yaml +0 -138
  131. repid-2.2.0a1/docs/advanced_user_guide/your_own_brokers.md +0 -412
  132. repid-2.2.0a1/docs/user_guide/workers/concurrency.md +0 -430
  133. repid-2.2.0a1/mkdocs.yml +0 -132
  134. repid-2.2.0a1/repid/_runner.py +0 -550
  135. repid-2.2.0a1/repid/admission.py +0 -879
  136. repid-2.2.0a1/repid/asyncapi/models/common/correlation_id.py +0 -12
  137. repid-2.2.0a1/repid/asyncapi/models/common/external_docs.py +0 -14
  138. repid-2.2.0a1/repid/connections/_subscriber.py +0 -292
  139. repid-2.2.0a1/repid/connections/amqp/subscriber.py +0 -278
  140. repid-2.2.0a1/repid/connections/kafka/subscriber.py +0 -181
  141. repid-2.2.0a1/repid/connections/nats/message_broker.py +0 -820
  142. repid-2.2.0a1/repid/connections/sqs/subscriber.py +0 -438
  143. repid-2.2.0a1/repid/limits.py +0 -208
  144. repid-2.2.0a1/tests/integration/conftest.py +0 -462
  145. repid-2.2.0a1/tests/unit/in_memory/test_message_broker.py +0 -928
  146. repid-2.2.0a1/tests/unit/pubsub/protocol/test_subscriber.py +0 -1477
  147. repid-2.2.0a1/tests/unit/sqs/__init__.py +0 -0
  148. repid-2.2.0a1/tests/unit/sqs/test_subscriber.py +0 -371
  149. repid-2.2.0a1/tests/unit/test_admission_control_adapters.py +0 -1700
  150. repid-2.2.0a1/tests/unit/test_admission_lifecycle.py +0 -425
  151. repid-2.2.0a1/tests/unit/test_channel.py +0 -59
  152. repid-2.2.0a1/tests/unit/test_limits.py +0 -401
  153. repid-2.2.0a1/tests/unit/test_prefetched_keepalive_regressions.py +0 -782
  154. repid-2.2.0a1/tests/unit/test_runner_admission_control.py +0 -1317
  155. repid-2.2.0a1/tests/unit/test_worker_limits_public.py +0 -625
  156. repid-2.2.0a1/uv.lock +0 -2921
  157. {repid-2.2.0a1 → repid-2.2.1}/.github/CODE_OF_CONDUCT.md +0 -0
  158. {repid-2.2.0a1 → repid-2.2.1}/.github/FUNDING.yml +0 -0
  159. {repid-2.2.0a1 → repid-2.2.1}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  160. {repid-2.2.0a1 → repid-2.2.1}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  161. {repid-2.2.0a1 → repid-2.2.1}/.github/ISSUE_TEMPLATE/other.md +0 -0
  162. {repid-2.2.0a1 → repid-2.2.1}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  163. {repid-2.2.0a1 → repid-2.2.1}/LICENSE +0 -0
  164. {repid-2.2.0a1 → repid-2.2.1}/README.md +0 -0
  165. {repid-2.2.0a1 → repid-2.2.1}/docs/advanced_user_guide/your_own_serializer.md +0 -0
  166. {repid-2.2.0a1 → repid-2.2.1}/docs/benchmarks.md +0 -0
  167. {repid-2.2.0a1 → repid-2.2.1}/docs/benchmarks_img/.gitignore +0 -0
  168. {repid-2.2.0a1 → repid-2.2.1}/docs/benchmarks_img/chart.svg +0 -0
  169. {repid-2.2.0a1 → repid-2.2.1}/docs/cookbook/chaining_jobs.md +0 -0
  170. {repid-2.2.0a1 → repid-2.2.1}/docs/cookbook/large_payloads.md +0 -0
  171. {repid-2.2.0a1 → repid-2.2.1}/docs/cookbook/opentelemetry_middleware.md +0 -0
  172. {repid-2.2.0a1 → repid-2.2.1}/docs/cookbook/rabbitmq_retries.md +0 -0
  173. {repid-2.2.0a1 → repid-2.2.1}/docs/cookbook/sentry_middleware.md +0 -0
  174. {repid-2.2.0a1 → repid-2.2.1}/docs/cookbook/testing.md +0 -0
  175. {repid-2.2.0a1 → repid-2.2.1}/docs/features.md +0 -0
  176. {repid-2.2.0a1 → repid-2.2.1}/docs/getting_started/glossary.md +0 -0
  177. {repid-2.2.0a1 → repid-2.2.1}/docs/getting_started/supported_brokers.md +0 -0
  178. {repid-2.2.0a1 → repid-2.2.1}/docs/integrations/asyncapi.md +0 -0
  179. {repid-2.2.0a1 → repid-2.2.1}/docs/overrides/partials/integrations/analytics/custom.html +0 -0
  180. {repid-2.2.0a1 → repid-2.2.1}/docs/playground.md +0 -0
  181. {repid-2.2.0a1 → repid-2.2.1}/docs/user_guide/actors/confirmation_and_errors.md +0 -0
  182. {repid-2.2.0a1 → repid-2.2.1}/docs/user_guide/actors/execution.md +0 -0
  183. {repid-2.2.0a1 → repid-2.2.1}/docs/user_guide/actors/index.md +0 -0
  184. {repid-2.2.0a1 → repid-2.2.1}/docs/user_guide/actors/parsing.md +0 -0
  185. {repid-2.2.0a1 → repid-2.2.1}/docs/user_guide/actors/routing.md +0 -0
  186. {repid-2.2.0a1 → repid-2.2.1}/docs/user_guide/message_registry.md +0 -0
  187. {repid-2.2.0a1 → repid-2.2.1}/docs/user_guide/messages.md +0 -0
  188. {repid-2.2.0a1 → repid-2.2.1}/docs/user_guide/raw_message_and_eager_response.md +0 -0
  189. {repid-2.2.0a1 → repid-2.2.1}/docs/user_guide/server_registry.md +0 -0
  190. {repid-2.2.0a1 → repid-2.2.1}/docs/user_guide/server_specific_parameters.md +0 -0
  191. {repid-2.2.0a1 → repid-2.2.1}/docs/user_guide/workers/built_in_servers.md +0 -0
  192. {repid-2.2.0a1 → repid-2.2.1}/docs/user_guide/workers/lifecycle.md +0 -0
  193. {repid-2.2.0a1 → repid-2.2.1}/repid/_utils/__init__.py +0 -0
  194. {repid-2.2.0a1 → repid-2.2.1}/repid/_utils/is_installed.py +0 -0
  195. {repid-2.2.0a1 → repid-2.2.1}/repid/_utils/not_set.py +0 -0
  196. {repid-2.2.0a1 → repid-2.2.1}/repid/asyncapi/__init__.py +0 -0
  197. {repid-2.2.0a1 → repid-2.2.1}/repid/asyncapi/models/__init__.py +0 -0
  198. {repid-2.2.0a1 → repid-2.2.1}/repid/asyncapi/models/channels.py +0 -0
  199. {repid-2.2.0a1 → repid-2.2.1}/repid/asyncapi/models/common/__init__.py +0 -0
  200. {repid-2.2.0a1 → repid-2.2.1}/repid/asyncapi/models/common/bindings.py +0 -0
  201. {repid-2.2.0a1 → repid-2.2.1}/repid/asyncapi/models/common/reference.py +0 -0
  202. {repid-2.2.0a1 → repid-2.2.1}/repid/asyncapi/models/components.py +0 -0
  203. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/amqp/__init__.py +0 -0
  204. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/amqp/_uamqp/LICENSE.txt +0 -0
  205. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/amqp/_uamqp/amqptypes.py +0 -0
  206. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/amqp/_uamqp/constants.py +0 -0
  207. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/amqp/_uamqp/message.py +0 -0
  208. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/amqp/helpers.py +0 -0
  209. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/amqp/protocol/__init__.py +0 -0
  210. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/amqp/protocol/events.py +0 -0
  211. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/amqp/protocol/managed.py +0 -0
  212. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/amqp/protocol/reconnect.py +0 -0
  213. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/amqp/protocol/states.py +0 -0
  214. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/in_memory/__init__.py +0 -0
  215. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/in_memory/utils.py +0 -0
  216. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/kafka/__init__.py +0 -0
  217. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/kafka/protocols.py +0 -0
  218. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/nats/__init__.py +0 -0
  219. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/pubsub/__init__.py +0 -0
  220. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/pubsub/helpers.py +0 -0
  221. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/pubsub/protocol/__init__.py +0 -0
  222. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/pubsub/protocol/channel.py +0 -0
  223. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/pubsub/protocol/client.py +0 -0
  224. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/pubsub/protocol/control_batcher.py +0 -0
  225. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/pubsub/protocol/credentials.py +0 -0
  226. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/pubsub/protocol/received_message.py +0 -0
  227. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/pubsub/protocol/resilience.py +0 -0
  228. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/redis/__init__.py +0 -0
  229. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/sqs/__init__.py +0 -0
  230. {repid-2.2.0a1 → repid-2.2.1}/repid/connections/sqs/constants.py +0 -0
  231. {repid-2.2.0a1 → repid-2.2.1}/repid/data/__init__.py +0 -0
  232. {repid-2.2.0a1 → repid-2.2.1}/repid/data/contact.py +0 -0
  233. {repid-2.2.0a1 → repid-2.2.1}/repid/data/converter_input_schema.py +0 -0
  234. {repid-2.2.0a1 → repid-2.2.1}/repid/data/external_docs.py +0 -0
  235. {repid-2.2.0a1 → repid-2.2.1}/repid/data/license.py +0 -0
  236. {repid-2.2.0a1 → repid-2.2.1}/repid/data/message.py +0 -0
  237. {repid-2.2.0a1 → repid-2.2.1}/repid/data/message_schema.py +0 -0
  238. {repid-2.2.0a1 → repid-2.2.1}/repid/data/operation.py +0 -0
  239. {repid-2.2.0a1 → repid-2.2.1}/repid/data/runner_info.py +0 -0
  240. {repid-2.2.0a1 → repid-2.2.1}/repid/data/tag.py +0 -0
  241. {repid-2.2.0a1 → repid-2.2.1}/repid/dependencies/__init__.py +0 -0
  242. {repid-2.2.0a1 → repid-2.2.1}/repid/dependencies/_utils.py +0 -0
  243. {repid-2.2.0a1 → repid-2.2.1}/repid/dependencies/full_payload.py +0 -0
  244. {repid-2.2.0a1 → repid-2.2.1}/repid/dependencies/header_dependency.py +0 -0
  245. {repid-2.2.0a1 → repid-2.2.1}/repid/dependencies/message_dependency.py +0 -0
  246. {repid-2.2.0a1 → repid-2.2.1}/repid/logger.py +0 -0
  247. {repid-2.2.0a1 → repid-2.2.1}/repid/message_registry.py +0 -0
  248. {repid-2.2.0a1 → repid-2.2.1}/repid/py.typed +0 -0
  249. {repid-2.2.0a1 → repid-2.2.1}/repid/serializer.py +0 -0
  250. {repid-2.2.0a1 → repid-2.2.1}/repid/server_registry.py +0 -0
  251. {repid-2.2.0a1 → repid-2.2.1}/tests/__init__.py +0 -0
  252. {repid-2.2.0a1 → repid-2.2.1}/tests/integration/__init__.py +0 -0
  253. {repid-2.2.0a1 → repid-2.2.1}/tests/integration/pubsub_proto_helpers.py +0 -0
  254. {repid-2.2.0a1 → repid-2.2.1}/tests/integration/rabbitmq_definitions.json +0 -0
  255. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/__init__.py +0 -0
  256. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/amqp/__init__.py +0 -0
  257. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/amqp/test_event_emitter.py +0 -0
  258. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/amqp/test_frame_buffer.py +0 -0
  259. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/amqp/test_logging.py +0 -0
  260. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/amqp/test_message.py +0 -0
  261. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/amqp/test_metrics.py +0 -0
  262. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/amqp/test_reconnect.py +0 -0
  263. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/amqp/utils.py +0 -0
  264. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/conftest.py +0 -0
  265. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/in_memory/__init__.py +0 -0
  266. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/pubsub/__init__.py +0 -0
  267. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/pubsub/protocol/test_channel.py +0 -0
  268. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/pubsub/protocol/test_client.py +0 -0
  269. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/pubsub/protocol/test_control_batcher.py +0 -0
  270. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/pubsub/protocol/test_credentials.py +0 -0
  271. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/pubsub/protocol/test_proto.py +0 -0
  272. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/pubsub/protocol/test_received_message.py +0 -0
  273. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/pubsub/protocol/test_resilience.py +0 -0
  274. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/pubsub/test_helpers.py +0 -0
  275. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/redis/__init__.py +0 -0
  276. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/redis/test_connection.py +0 -0
  277. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/test_kafka_connection.py +0 -0
  278. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/test_nats_connection.py +0 -0
  279. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/test_serializer.py +0 -0
  280. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/test_server_registry.py +0 -0
  281. {repid-2.2.0a1 → repid-2.2.1}/tests/unit/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "Repid Devcontainer",
3
- "image": "mcr.microsoft.com/devcontainers/python:1-3.10-bookworm",
3
+ "image": "mcr.microsoft.com/devcontainers/python:1-3.11-bookworm",
4
4
  "features": {
5
5
  "ghcr.io/va-h/devcontainers-features/uv:1": {},
6
6
  "ghcr.io/jungaretti/features/make:1": {},
@@ -9,14 +9,13 @@
9
9
  "customizations": {
10
10
  "vscode": {
11
11
  "settings": {
12
- "python.defaultInterpreterPath": "/usr/local/bin/python",
12
+ "python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python",
13
13
  "python.venvPath": "${workspaceFolder}/.venv"
14
14
  },
15
15
  "extensions": [
16
16
  "ms-python.python",
17
- "ms-python.vscode-pylance",
18
17
  "ms-python.debugpy",
19
- "matangover.mypy",
18
+ "meta.pyrefly",
20
19
  "charliermarsh.ruff",
21
20
  "ryanluker.vscode-coverage-gutters",
22
21
  "seatonjiang.gitmoji-vscode",
@@ -0,0 +1,37 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: uv
4
+ directory: /
5
+ schedule:
6
+ interval: monthly
7
+ cooldown:
8
+ default-days: 7
9
+ commit-message:
10
+ prefix: ⬆
11
+ groups:
12
+ python-packages:
13
+ patterns: ['*']
14
+
15
+ - package-ecosystem: pre-commit
16
+ directory: /
17
+ schedule:
18
+ interval: monthly
19
+ cooldown:
20
+ default-days: 7
21
+ commit-message:
22
+ prefix: ⬆
23
+ groups:
24
+ python-packages:
25
+ patterns: ['*']
26
+
27
+ - package-ecosystem: github-actions
28
+ directory: /
29
+ schedule:
30
+ interval: monthly
31
+ cooldown:
32
+ default-days: 7
33
+ commit-message:
34
+ prefix: ⬆
35
+ groups:
36
+ github-actions:
37
+ patterns: ['*']
@@ -0,0 +1,102 @@
1
+ # This file is machine-generated by `gh actions-lock`.
2
+ # Do not edit by hand; run `gh actions-lock` to update.
3
+ # Docs: https://gh.io/actions-lockfile
4
+ version: 'v0.0.3'
5
+ workflows:
6
+ '.github/workflows/codeql.yml':
7
+ - 'actions/checkout@v7.0.1'
8
+ - 'github/codeql-action@v4.39.3'
9
+ '.github/workflows/dependency-review.yml':
10
+ - 'actions/checkout@v7.0.1'
11
+ - 'actions/dependency-review-action@v5.0.0'
12
+ - 'astral-sh/setup-uv@v10.3.3'
13
+ '.github/workflows/docs.yml':
14
+ - 'actions/checkout@v7.0.1'
15
+ - 'astral-sh/setup-uv@v10.3.3'
16
+ '.github/workflows/prek.yml':
17
+ - 'actions/checkout@v7.0.1'
18
+ - 'astral-sh/setup-uv@v10.3.3'
19
+ '.github/workflows/release.yaml':
20
+ - 'actions/checkout@v7.0.1'
21
+ - 'actions/download-artifact@v8.0.2'
22
+ - 'actions/upload-artifact@v7.0.2'
23
+ - 'astral-sh/setup-uv@v10.3.3'
24
+ - 'pypa/gh-action-pypi-publish@v1.14.3'
25
+ '.github/workflows/tests.yaml':
26
+ - 'actions/checkout@v7.0.1'
27
+ - 'actions/download-artifact@v8.0.2'
28
+ - 'actions/setup-node@v7.1.0'
29
+ - 'actions/upload-artifact@v7.0.2'
30
+ - 'astral-sh/setup-uv@v10.3.3'
31
+ - 'peaceiris/actions-gh-pages@v4.1.0'
32
+ '.github/workflows/typecheck.yml':
33
+ - 'actions/checkout@v7.0.1'
34
+ - 'astral-sh/setup-uv@v10.3.3'
35
+ '.github/workflows/workflow-lint.yml':
36
+ - 'actions/checkout@v7.0.1'
37
+ - 'zizmorcore/zizmor-action@v0.8.1'
38
+ dependencies:
39
+ 'actions/checkout@v7.0.1':
40
+ ref: 'v7.0.1'
41
+ commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1'
42
+ owner_id: 44036562
43
+ repo_id: 197814629
44
+ 'actions/dependency-review-action@v5.0.0':
45
+ ref: 'v5.0.0'
46
+ commit: 'sha1-a1d282b36b6f3519aa1f3fc636f609c47dddb294'
47
+ owner_id: 44036562
48
+ repo_id: 476372928
49
+ 'actions/download-artifact@v8.0.2':
50
+ ref: 'v8.0.2'
51
+ commit: 'sha1-9000827ccba6bdab643e8b6fd33ac0654aef8333'
52
+ owner_id: 44036562
53
+ repo_id: 192626254
54
+ 'actions/setup-node@v7.1.0':
55
+ ref: 'v7.1.0'
56
+ commit: 'sha1-949feb2413d6458794dcd2491c4babbbce0c15c1'
57
+ owner_id: 44036562
58
+ repo_id: 189476904
59
+ 'actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405':
60
+ ref: 'v6.2.0'
61
+ commit: 'sha1-a309ff8b426b58ec0e2a45f0f869d46889d02405'
62
+ owner_id: 44036562
63
+ repo_id: 192625525
64
+ 'actions/upload-artifact@v7.0.2':
65
+ ref: 'v7.0.2'
66
+ commit: 'sha1-cf430e030ddbb5b0abf93d22962f4752f3646cd9'
67
+ owner_id: 44036562
68
+ repo_id: 192625955
69
+ 'astral-sh/setup-uv@v10.3.3':
70
+ ref: 'v10.3.3'
71
+ commit: 'sha1-68559e99cc807c1eb7e9238fd43a15bba460eec2'
72
+ owner_id: 115962839
73
+ repo_id: 846733598
74
+ 'github/codeql-action@9b3254085494b55a0f7c4c2b3d2d52cc712ce370':
75
+ ref: 'v4.39.1'
76
+ commit: 'sha1-9b3254085494b55a0f7c4c2b3d2d52cc712ce370'
77
+ owner_id: 9919
78
+ repo_id: 259445878
79
+ 'github/codeql-action@v4.39.3':
80
+ ref: 'v4.39.3'
81
+ commit: 'sha1-33d7b85da1a04171e211befe2c739303b9a4c066'
82
+ owner_id: 9919
83
+ repo_id: 259445878
84
+ 'peaceiris/actions-gh-pages@v4.1.0':
85
+ ref: 'v4.1.0'
86
+ commit: 'sha1-84c30a85c19949d7eee79c4ff27748b70285e453'
87
+ owner_id: 30958501
88
+ repo_id: 187915200
89
+ 'pypa/gh-action-pypi-publish@v1.14.3':
90
+ ref: 'v1.14.3'
91
+ commit: 'sha1-7245906fb61fa33a13554f9d5fb856fe61758086'
92
+ owner_id: 647025
93
+ repo_id: 178055147
94
+ uses:
95
+ - 'actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405'
96
+ 'zizmorcore/zizmor-action@v0.8.1':
97
+ ref: 'v0.8.1'
98
+ commit: 'sha1-45d7276c9ca790aabd705e31ca99c6185c3e76dd'
99
+ owner_id: 210636713
100
+ repo_id: 985558803
101
+ uses:
102
+ - 'github/codeql-action@9b3254085494b55a0f7c4c2b3d2d52cc712ce370'
@@ -38,11 +38,13 @@ jobs:
38
38
 
39
39
  steps:
40
40
  - name: Checkout repository
41
- uses: actions/checkout@v7
41
+ uses: actions/checkout@v7.0.1
42
+ with:
43
+ persist-credentials: false
42
44
 
43
45
  # Initializes the CodeQL tools for scanning.
44
46
  - name: Initialize CodeQL
45
- uses: github/codeql-action/init@v4.37.9
47
+ uses: github/codeql-action/init@v4.39.3
46
48
  with:
47
49
  languages: ${{ matrix.language }}
48
50
  # If you wish to specify custom queries, you can do so here or in a config file.
@@ -55,7 +57,7 @@ jobs:
55
57
  # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
56
58
  # If this step fails, then you should remove it and run the build manually (see below)
57
59
  - name: Autobuild
58
- uses: github/codeql-action/autobuild@v4.37.9
60
+ uses: github/codeql-action/autobuild@v4.39.3
59
61
 
60
62
  # ℹ️ Command-line programs to run using the OS shell.
61
63
  # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -68,4 +70,4 @@ jobs:
68
70
  # ./location_of_script_within_repo/buildscript.sh
69
71
 
70
72
  - name: Perform CodeQL Analysis
71
- uses: github/codeql-action/analyze@v4.37.9
73
+ uses: github/codeql-action/analyze@v4.39.3
@@ -16,13 +16,15 @@ jobs:
16
16
  runs-on: ubuntu-latest
17
17
  steps:
18
18
  - name: Checkout Repository
19
- uses: actions/checkout@v7
19
+ uses: actions/checkout@v7.0.1
20
+ with:
21
+ persist-credentials: false
20
22
 
21
23
  - name: Setup uv
22
- uses: astral-sh/setup-uv@v7
24
+ uses: astral-sh/setup-uv@v10.3.3
23
25
 
24
26
  - name: Export requirements
25
27
  run: uv export --format requirements-txt --frozen --all-groups --all-extras > requirements.txt
26
28
 
27
29
  - name: Dependency Review
28
- uses: actions/dependency-review-action@v5
30
+ uses: actions/dependency-review-action@v5.0.0
@@ -0,0 +1,89 @@
1
+ name: Docs
2
+
3
+ on:
4
+ pull_request:
5
+ paths:
6
+ - docs/**
7
+ - zensical.toml
8
+ - pyproject.toml
9
+ - uv.lock
10
+ - .github/workflows/docs.yml
11
+ release:
12
+ types:
13
+ - published
14
+ workflow_dispatch:
15
+ inputs:
16
+ tag:
17
+ description: Release tag to deploy
18
+ required: true
19
+ type: string
20
+
21
+ permissions:
22
+ contents: read
23
+
24
+ concurrency:
25
+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}
26
+ cancel-in-progress: true
27
+
28
+ jobs:
29
+ build_docs:
30
+ name: Build docs for review
31
+ if: github.event_name == 'pull_request'
32
+ runs-on: ubuntu-latest
33
+ timeout-minutes: 10
34
+ steps:
35
+ - name: Checkout repository
36
+ uses: actions/checkout@v7.0.1
37
+ with:
38
+ persist-credentials: false
39
+
40
+ - name: Setup uv
41
+ uses: astral-sh/setup-uv@v10.3.3
42
+ with:
43
+ enable-cache: false
44
+
45
+ - name: Install docs dependencies
46
+ run: uv sync --only-group docs --frozen --python 3.11
47
+
48
+ - name: Build docs
49
+ run: uv run --no-sync zensical build
50
+
51
+ deploy_docs:
52
+ if: github.event_name != 'pull_request'
53
+ runs-on: ubuntu-latest
54
+ timeout-minutes: 10
55
+ permissions:
56
+ contents: write
57
+ steps:
58
+ - name: Checkout repository
59
+ uses: actions/checkout@v7.0.1
60
+ with:
61
+ ref: ${{ github.event_name == 'workflow_dispatch' && format('refs/tags/{0}', inputs.tag) || github.ref }}
62
+ fetch-depth: 0
63
+ persist-credentials: false
64
+
65
+ - name: Setup git user
66
+ run: |
67
+ git config user.name github-actions
68
+ git config user.email github-actions@github.com
69
+
70
+ - name: Setup uv
71
+ uses: astral-sh/setup-uv@v10.3.3
72
+ with:
73
+ enable-cache: false
74
+
75
+ - name: Install docs dependencies
76
+ run: uv sync --only-group docs --frozen --python 3.11
77
+
78
+ - name: Build docs and commit the version locally
79
+ env:
80
+ RELEASE_TAG: ${{ github.event.release.tag_name || inputs.tag }}
81
+ run: |
82
+ uv run --no-sync mike deploy --update-aliases -- "${RELEASE_TAG#v}" latest
83
+
84
+ - name: Publish docs
85
+ env:
86
+ GH_TOKEN: ${{ github.token }}
87
+ run: |
88
+ gh auth setup-git --hostname github.com
89
+ git push origin gh-pages
@@ -0,0 +1,32 @@
1
+ name: prek
2
+
3
+ on:
4
+ pull_request:
5
+
6
+ permissions:
7
+ contents: read
8
+
9
+ concurrency:
10
+ group: ${{ github.workflow }}-${{ github.ref }}
11
+ cancel-in-progress: true
12
+
13
+ jobs:
14
+ prek:
15
+ runs-on: ubuntu-latest
16
+ timeout-minutes: 10
17
+ steps:
18
+ - name: Checkout repository
19
+ uses: actions/checkout@v7.0.1
20
+ with:
21
+ fetch-depth: 0
22
+ persist-credentials: false
23
+
24
+ - name: Setup uv
25
+ uses: astral-sh/setup-uv@v10.3.3
26
+
27
+ - name: Run prek
28
+ env:
29
+ BASE_SHA: ${{ github.event.pull_request.base.sha }}
30
+ run: |
31
+ uv run --locked --only-group prek --python 3.11 prek run \
32
+ --from-ref "$BASE_SHA" --to-ref HEAD --skip pyrefly --show-diff-on-failure
@@ -0,0 +1,53 @@
1
+ name: Release
2
+
3
+ on:
4
+ release:
5
+ types:
6
+ - published
7
+ workflow_dispatch:
8
+
9
+ jobs:
10
+ build:
11
+ runs-on: ubuntu-latest
12
+ permissions:
13
+ contents: read
14
+ steps:
15
+ - name: Checkout repository
16
+ uses: actions/checkout@v7.0.1
17
+ with:
18
+ fetch-depth: 0
19
+ persist-credentials: false
20
+
21
+ - name: Setup uv
22
+ uses: astral-sh/setup-uv@v10.3.3
23
+ with:
24
+ enable-cache: false
25
+
26
+ - name: Build
27
+ run: uv build
28
+
29
+ - name: Store distributions
30
+ uses: actions/upload-artifact@v7.0.2
31
+ with:
32
+ name: distributions
33
+ path: dist/
34
+ if-no-files-found: error
35
+
36
+ release:
37
+ needs: build
38
+ runs-on: ubuntu-latest
39
+ environment: release
40
+ permissions:
41
+ # Required for PyPI Trusted Publishing and signing attestations.
42
+ id-token: write
43
+ steps:
44
+ - name: Download distributions
45
+ uses: actions/download-artifact@v8.0.2
46
+ with:
47
+ name: distributions
48
+ path: dist/
49
+
50
+ - name: Publish to PyPI
51
+ uses: pypa/gh-action-pypi-publish@v1.14.3
52
+ with:
53
+ attestations: true
@@ -0,0 +1,226 @@
1
+ name: Tests
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+ branches:
9
+ - main
10
+ workflow_dispatch:
11
+
12
+ permissions:
13
+ contents: read
14
+
15
+ concurrency:
16
+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}
17
+ cancel-in-progress: true
18
+
19
+ jobs:
20
+ package:
21
+ name: Build and smoke-test package
22
+ runs-on: ubuntu-latest
23
+ timeout-minutes: 10
24
+ steps:
25
+ - name: Checkout repository
26
+ uses: actions/checkout@v7.0.1
27
+ with:
28
+ fetch-depth: 0
29
+ persist-credentials: false
30
+
31
+ - name: Setup uv
32
+ uses: astral-sh/setup-uv@v10.3.3
33
+
34
+ - name: Build wheel and source distribution
35
+ run: uv build --python 3.11
36
+
37
+ - name: Install and import the wheel
38
+ run: |
39
+ uv run --isolated --no-project --python 3.11 --with dist/*.whl -- \
40
+ python -I -c 'from repid import Repid; Repid()'
41
+
42
+ unit-tests:
43
+ name: Unit tests (Python ${{ matrix.python-version }})
44
+ runs-on: ubuntu-latest
45
+ timeout-minutes: 45
46
+
47
+ strategy:
48
+ fail-fast: false
49
+ matrix:
50
+ python-version:
51
+ - '3.11'
52
+ - '3.12'
53
+ - '3.13'
54
+ - '3.14'
55
+ - '3.15'
56
+
57
+ steps:
58
+ - name: Checkout repository
59
+ uses: actions/checkout@v7.0.1
60
+ with:
61
+ persist-credentials: false
62
+
63
+ - name: Setup uv
64
+ uses: astral-sh/setup-uv@v10.3.3
65
+
66
+ - name: Install test dependencies
67
+ run: uv sync --frozen --all-extras --group tests --python ${{ matrix.python-version }}
68
+
69
+ - name: Run unit tests
70
+ run: uv run --no-sync coverage run -m pytest --color=yes tests/unit
71
+
72
+ - name: Display coverage
73
+ run: uv run --no-sync coverage report --no-skip-covered --show-missing --fail-under=0
74
+
75
+ - name: Rename .coverage file
76
+ run: |
77
+ mkdir coverage
78
+ mv .coverage coverage/.coverage.unit-py${{ matrix.python-version }}
79
+
80
+ - name: Store coverage files
81
+ uses: actions/upload-artifact@v7.0.2
82
+ with:
83
+ name: coverage-unit-py${{ matrix.python-version }}
84
+ path: coverage
85
+ include-hidden-files: true
86
+ if-no-files-found: error
87
+
88
+ integration-tests:
89
+ name: Integration tests (${{ matrix.target }}, Python ${{ matrix.python-version }})
90
+ runs-on: ubuntu-latest
91
+ timeout-minutes: 45
92
+ strategy:
93
+ fail-fast: false
94
+ matrix:
95
+ python-version: ['3.11', '3.12', '3.13', '3.14', '3.15']
96
+ target: [rabbitmq, activemq, pubsub, redis, kafka, nats, sqs, asyncapi]
97
+ env:
98
+ TEST_TARGET: ${{ matrix.target }}
99
+
100
+ steps:
101
+ - name: Checkout repository
102
+ uses: actions/checkout@v7.0.1
103
+ with:
104
+ persist-credentials: false
105
+
106
+ - name: Setup uv
107
+ uses: astral-sh/setup-uv@v10.3.3
108
+
109
+ - name: Install test dependencies
110
+ run: uv sync --frozen --all-extras --group tests --python ${{ matrix.python-version }}
111
+
112
+ - name: Start and prepare broker
113
+ if: matrix.target != 'asyncapi'
114
+ run: uv run --no-sync python -m tests.integration.brokers "$TEST_TARGET" --env-file "$GITHUB_ENV"
115
+
116
+ - name: Set up Node.js for AsyncAPI validation
117
+ if: matrix.target == 'asyncapi'
118
+ uses: actions/setup-node@v7.1.0
119
+ with:
120
+ node-version: 26.13.1
121
+ package-manager-cache: false
122
+
123
+ - name: Install locked AsyncAPI dependencies
124
+ if: matrix.target == 'asyncapi'
125
+ working-directory: tests/integration/asyncapi
126
+ run: npm ci --ignore-scripts --no-audit --no-fund
127
+
128
+ - name: Run integration tests
129
+ env:
130
+ REPID_TEST_ASYNCAPI_PREPARED: ${{ matrix.target == 'asyncapi' }}
131
+ run: |
132
+ uv run --no-sync coverage run -m pytest --color=yes tests/integration \
133
+ -m "integration_target(name='$TEST_TARGET')"
134
+
135
+ - name: Show broker logs
136
+ if: failure() && env.REPID_TEST_CONTAINER != ''
137
+ run: docker logs --tail 100 "$REPID_TEST_CONTAINER"
138
+
139
+ - name: Stop broker
140
+ if: always() && env.REPID_TEST_CONTAINER != ''
141
+ run: docker rm --force --volumes "$REPID_TEST_CONTAINER"
142
+
143
+ - name: Rename .coverage file
144
+ run: |
145
+ mkdir coverage
146
+ mv .coverage "coverage/.coverage.integration-${TEST_TARGET}-py${{ matrix.python-version }}"
147
+
148
+ - name: Store coverage files
149
+ uses: actions/upload-artifact@v7.0.2
150
+ with:
151
+ name: coverage-${{ matrix.target }}-py${{ matrix.python-version }}
152
+ path: coverage
153
+ include-hidden-files: true
154
+ if-no-files-found: error
155
+
156
+ coverage-combine:
157
+ needs: [unit-tests, integration-tests]
158
+ runs-on: ubuntu-latest
159
+ timeout-minutes: 10
160
+ outputs:
161
+ percentage: ${{ steps.coverage.outputs.percentage }}
162
+
163
+ steps:
164
+ - uses: actions/checkout@v7.0.1
165
+ with:
166
+ persist-credentials: false
167
+
168
+ - name: Setup uv
169
+ uses: astral-sh/setup-uv@v10.3.3
170
+
171
+ - name: Get coverage files
172
+ uses: actions/download-artifact@v8.0.2
173
+ with:
174
+ path: coverage
175
+ pattern: coverage-*
176
+ merge-multiple: true
177
+
178
+ - name: Install coverage dependencies
179
+ run: uv sync --frozen --only-group tests --python 3.11
180
+
181
+ - name: Combine coverage and enforce the threshold
182
+ run: |
183
+ uv run --no-sync coverage combine coverage
184
+ uv run --no-sync coverage report --format=markdown --skip-covered --show-missing \
185
+ >> "$GITHUB_STEP_SUMMARY"
186
+
187
+ - name: Get coverage percentage for badge
188
+ id: coverage
189
+ if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
190
+ run: |
191
+ uv run --no-sync coverage json
192
+ percentage=$(uv run --no-sync python -c \
193
+ 'import json; print(json.load(open("coverage.json"))["totals"]["percent_covered_display"])')
194
+ echo "percentage=$percentage" >> "$GITHUB_OUTPUT"
195
+
196
+ coverage-badge:
197
+ needs: coverage-combine
198
+ if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
199
+ runs-on: ubuntu-latest
200
+ timeout-minutes: 5
201
+ permissions:
202
+ contents: write
203
+ steps:
204
+ - name: Generate Coverage Badge
205
+ env:
206
+ COVERAGE: ${{ needs.coverage-combine.outputs.percentage }}
207
+ run: |
208
+ if [ "$COVERAGE" -ge 95 ]; then
209
+ color=brightgreen
210
+ elif [ "$COVERAGE" -ge 80 ]; then
211
+ color=yellowgreen
212
+ else
213
+ color=red
214
+ fi
215
+ mkdir -p badges
216
+ curl --fail --silent --show-error --retry 3 \
217
+ "https://img.shields.io/badge/coverage-${COVERAGE}%25-${color}" -o badges/coverage.svg
218
+
219
+ - name: Publish Coverage Badge
220
+ uses: peaceiris/actions-gh-pages@v4.1.0
221
+ with:
222
+ github_token: ${{ secrets.GITHUB_TOKEN }}
223
+ publish_dir: ./badges
224
+ publish_branch: gh-pages
225
+ destination_dir: badges
226
+ keep_files: true
@@ -0,0 +1,35 @@
1
+ name: Type check
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ workflow_dispatch:
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ concurrency:
13
+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}
14
+ cancel-in-progress: true
15
+
16
+ jobs:
17
+ typecheck:
18
+ name: Type check (Python 3.11)
19
+ runs-on: ubuntu-latest
20
+ timeout-minutes: 15
21
+
22
+ steps:
23
+ - name: Checkout repository
24
+ uses: actions/checkout@v7.0.1
25
+ with:
26
+ persist-credentials: false
27
+
28
+ - name: Setup uv
29
+ uses: astral-sh/setup-uv@v10.3.3
30
+
31
+ - name: Install type-checking dependencies
32
+ run: uv sync --frozen --all-extras --group lint --group tests --python 3.11
33
+
34
+ - name: Run Pyrefly
35
+ run: uv run --no-sync pyrefly check --output-format=full-text-with-github
@@ -0,0 +1,41 @@
1
+ name: Workflow lint
2
+
3
+ on:
4
+ pull_request:
5
+ push:
6
+ branches: [main]
7
+ workflow_dispatch:
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ concurrency:
13
+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}
14
+ cancel-in-progress: true
15
+
16
+ jobs:
17
+ lint:
18
+ runs-on: ubuntu-latest
19
+ timeout-minutes: 10
20
+ steps:
21
+ - name: Checkout repository
22
+ uses: actions/checkout@v7.0.1
23
+ with:
24
+ persist-credentials: false
25
+
26
+ - name: Check workflow syntax
27
+ run: go run github.com/rhysd/actionlint/cmd/actionlint@v1.7.12
28
+
29
+ - name: Verify action lockfile
30
+ env:
31
+ GH_TOKEN: ${{ github.token }}
32
+ run: |
33
+ gh extension install github/gh-actions-lock --pin v0.4.1
34
+ gh actions-lock --verify
35
+
36
+ - name: Audit workflows with zizmor
37
+ uses: zizmorcore/zizmor-action@v0.8.1
38
+ with:
39
+ advanced-security: false
40
+ annotations: true
41
+ online-audits: false