pytest-databases 0.19.0__tar.gz → 0.20.0b3__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 (224) hide show
  1. pytest_databases-0.20.0b3/.github/ci/provider-groups.json +347 -0
  2. pytest_databases-0.20.0b3/.github/workflows/ci.yaml +332 -0
  3. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/.github/workflows/docs.yml +12 -10
  4. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/.github/workflows/pr-title.yaml +2 -2
  5. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/.github/workflows/release.yaml +12 -4
  6. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/.gitignore +2 -0
  7. pytest_databases-0.20.0b3/.pre-commit-config.yaml +32 -0
  8. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/CONTRIBUTING.rst +28 -10
  9. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/Makefile +83 -17
  10. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/PKG-INFO +56 -40
  11. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/README.md +43 -28
  12. pytest_databases-0.20.0b3/docs/changelog.rst +927 -0
  13. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/docs/conf.py +19 -23
  14. pytest_databases-0.20.0b3/docs/getting-started/basic-usage.rst +26 -0
  15. pytest_databases-0.20.0b3/docs/getting-started/configuration.rst +152 -0
  16. pytest_databases-0.20.0b3/docs/getting-started/enabling-plugins.rst +12 -0
  17. pytest_databases-0.20.0b3/docs/getting-started/installation.rst +123 -0
  18. pytest_databases-0.20.0b3/docs/supported-databases/azure_blob_storage.rst +56 -0
  19. pytest_databases-0.20.0b3/docs/supported-databases/bigquery.rst +56 -0
  20. pytest_databases-0.20.0b3/docs/supported-databases/cloudflare.rst +179 -0
  21. pytest_databases-0.20.0b3/docs/supported-databases/cockroachdb.rst +53 -0
  22. pytest_databases-0.20.0b3/docs/supported-databases/db2.rst +109 -0
  23. pytest_databases-0.20.0b3/docs/supported-databases/doltgres.rst +70 -0
  24. pytest_databases-0.20.0b3/docs/supported-databases/elasticsearch.rst +48 -0
  25. pytest_databases-0.20.0b3/docs/supported-databases/embedded_postgres.rst +175 -0
  26. pytest_databases-0.20.0b3/docs/supported-databases/floci.rst +149 -0
  27. pytest_databases-0.20.0b3/docs/supported-databases/gizmosql.rst +100 -0
  28. pytest_databases-0.20.0b3/docs/supported-databases/hardcharger.rst +109 -0
  29. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/docs/supported-databases/index.rst +14 -0
  30. pytest_databases-0.20.0b3/docs/supported-databases/localstack.rst +122 -0
  31. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/docs/supported-databases/mariadb.rst +18 -5
  32. pytest_databases-0.20.0b3/docs/supported-databases/minio.rst +61 -0
  33. pytest_databases-0.20.0b3/docs/supported-databases/mongodb.rst +78 -0
  34. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/docs/supported-databases/mysql.rst +17 -5
  35. pytest_databases-0.20.0b3/docs/supported-databases/oracle.rst +196 -0
  36. pytest_databases-0.20.0b3/docs/supported-databases/postgres.rst +267 -0
  37. pytest_databases-0.20.0b3/docs/supported-databases/pubsub.rst +94 -0
  38. pytest_databases-0.20.0b3/docs/supported-databases/rabbitmq.rst +59 -0
  39. pytest_databases-0.20.0b3/docs/supported-databases/redis.rst +69 -0
  40. pytest_databases-0.20.0b3/docs/supported-databases/redpanda.rst +114 -0
  41. pytest_databases-0.20.0b3/docs/supported-databases/rustfs.rst +93 -0
  42. pytest_databases-0.20.0b3/docs/supported-databases/snowflake.rst +79 -0
  43. pytest_databases-0.20.0b3/docs/supported-databases/spanner.rst +63 -0
  44. pytest_databases-0.20.0b3/docs/supported-databases/sqlanywhere.rst +76 -0
  45. pytest_databases-0.20.0b3/docs/supported-databases/sqlserver.rst +63 -0
  46. pytest_databases-0.20.0b3/docs/supported-databases/sybase.rst +89 -0
  47. pytest_databases-0.20.0b3/docs/supported-databases/teradata.rst +61 -0
  48. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/docs/supported-databases/valkey.rst +11 -9
  49. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/docs/supported-databases/yugabyte.rst +1 -1
  50. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/pyproject.toml +74 -41
  51. pytest_databases-0.20.0b3/scripts/__init__.py +1 -0
  52. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/scripts/build_docs.py +6 -4
  53. pytest_databases-0.20.0b3/scripts/ci/__init__.py +1 -0
  54. pytest_databases-0.20.0b3/scripts/ci/check_required_jobs.py +57 -0
  55. pytest_databases-0.20.0b3/scripts/ci/pull_images.py +102 -0
  56. pytest_databases-0.20.0b3/scripts/ci/run_tests.py +71 -0
  57. pytest_databases-0.20.0b3/scripts/ci/select_provider_tests.py +576 -0
  58. pytest_databases-0.20.0b3/src/pytest_databases/__init__.py +58 -0
  59. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/src/pytest_databases/__metadata__.py +2 -0
  60. pytest_databases-0.20.0b3/src/pytest_databases/_service.py +1258 -0
  61. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/src/pytest_databases/docker/__init__.py +52 -30
  62. pytest_databases-0.20.0b3/src/pytest_databases/docker/azure_blob.py +384 -0
  63. pytest_databases-0.20.0b3/src/pytest_databases/docker/bigquery.py +340 -0
  64. pytest_databases-0.20.0b3/src/pytest_databases/docker/cloudflare.py +556 -0
  65. pytest_databases-0.20.0b3/src/pytest_databases/docker/cockroachdb.py +264 -0
  66. pytest_databases-0.20.0b3/src/pytest_databases/docker/db2.py +782 -0
  67. pytest_databases-0.20.0b3/src/pytest_databases/docker/dolt.py +220 -0
  68. pytest_databases-0.20.0b3/src/pytest_databases/docker/doltgres.py +379 -0
  69. pytest_databases-0.20.0b3/src/pytest_databases/docker/elastic_search.py +248 -0
  70. pytest_databases-0.20.0b3/src/pytest_databases/docker/floci.py +943 -0
  71. pytest_databases-0.20.0b3/src/pytest_databases/docker/gizmosql.py +300 -0
  72. pytest_databases-0.20.0b3/src/pytest_databases/docker/hardcharger.py +209 -0
  73. pytest_databases-0.20.0b3/src/pytest_databases/docker/localstack.py +263 -0
  74. pytest_databases-0.20.0b3/src/pytest_databases/docker/mariadb.py +468 -0
  75. pytest_databases-0.20.0b3/src/pytest_databases/docker/minio.py +198 -0
  76. pytest_databases-0.20.0b3/src/pytest_databases/docker/mongodb.py +607 -0
  77. pytest_databases-0.20.0b3/src/pytest_databases/docker/mssql.py +625 -0
  78. pytest_databases-0.20.0b3/src/pytest_databases/docker/mysql.py +532 -0
  79. pytest_databases-0.20.0b3/src/pytest_databases/docker/oracle.py +2076 -0
  80. pytest_databases-0.20.0b3/src/pytest_databases/docker/postgres.py +1909 -0
  81. pytest_databases-0.20.0b3/src/pytest_databases/docker/pubsub.py +157 -0
  82. pytest_databases-0.20.0b3/src/pytest_databases/docker/rabbitmq.py +237 -0
  83. pytest_databases-0.20.0b3/src/pytest_databases/docker/redis.py +294 -0
  84. pytest_databases-0.20.0b3/src/pytest_databases/docker/redpanda.py +318 -0
  85. pytest_databases-0.20.0b3/src/pytest_databases/docker/rustfs.py +197 -0
  86. pytest_databases-0.20.0b3/src/pytest_databases/docker/snowflake.py +801 -0
  87. pytest_databases-0.20.0b3/src/pytest_databases/docker/spanner.py +449 -0
  88. pytest_databases-0.20.0b3/src/pytest_databases/docker/sqlanywhere.py +493 -0
  89. pytest_databases-0.20.0b3/src/pytest_databases/docker/sybase.py +749 -0
  90. pytest_databases-0.20.0b3/src/pytest_databases/docker/teradata.py +555 -0
  91. pytest_databases-0.20.0b3/src/pytest_databases/docker/valkey.py +139 -0
  92. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/src/pytest_databases/docker/yugabyte.py +186 -130
  93. pytest_databases-0.20.0b3/src/pytest_databases/embedded/__init__.py +1 -0
  94. pytest_databases-0.20.0b3/src/pytest_databases/embedded/_pgwire.py +375 -0
  95. pytest_databases-0.20.0b3/src/pytest_databases/embedded/postgres.py +952 -0
  96. pytest_databases-0.20.0b3/src/pytest_databases/helpers.py +1149 -0
  97. pytest_databases-0.20.0b3/src/pytest_databases/runtime.py +299 -0
  98. pytest_databases-0.20.0b3/src/pytest_databases/types.py +473 -0
  99. pytest_databases-0.20.0b3/tests/conftest.py +95 -0
  100. pytest_databases-0.20.0b3/tests/test_azure_blob.py +507 -0
  101. pytest_databases-0.20.0b3/tests/test_bigquery.py +533 -0
  102. pytest_databases-0.20.0b3/tests/test_ci_provider_groups.py +744 -0
  103. pytest_databases-0.20.0b3/tests/test_cloudflare.py +662 -0
  104. pytest_databases-0.20.0b3/tests/test_cockroachdb.py +381 -0
  105. pytest_databases-0.20.0b3/tests/test_db2.py +920 -0
  106. pytest_databases-0.20.0b3/tests/test_docker_service.py +1206 -0
  107. pytest_databases-0.20.0b3/tests/test_dolt.py +280 -0
  108. pytest_databases-0.20.0b3/tests/test_doltgres.py +318 -0
  109. pytest_databases-0.20.0b3/tests/test_elasticsearch.py +302 -0
  110. pytest_databases-0.20.0b3/tests/test_embedded_postgres.py +1254 -0
  111. pytest_databases-0.20.0b3/tests/test_floci.py +761 -0
  112. pytest_databases-0.20.0b3/tests/test_gizmosql.py +385 -0
  113. pytest_databases-0.20.0b3/tests/test_hardcharger.py +407 -0
  114. pytest_databases-0.20.0b3/tests/test_localstack.py +444 -0
  115. pytest_databases-0.20.0b3/tests/test_mariadb.py +450 -0
  116. pytest_databases-0.20.0b3/tests/test_minio.py +427 -0
  117. pytest_databases-0.20.0b3/tests/test_mongodb.py +600 -0
  118. pytest_databases-0.20.0b3/tests/test_mssql.py +405 -0
  119. pytest_databases-0.20.0b3/tests/test_mysql.py +546 -0
  120. pytest_databases-0.20.0b3/tests/test_oracle.py +1964 -0
  121. pytest_databases-0.20.0b3/tests/test_postgres.py +1518 -0
  122. pytest_databases-0.20.0b3/tests/test_pubsub.py +288 -0
  123. pytest_databases-0.20.0b3/tests/test_rabbitmq.py +316 -0
  124. pytest_databases-0.20.0b3/tests/test_redis.py +309 -0
  125. pytest_databases-0.20.0b3/tests/test_redpanda.py +415 -0
  126. pytest_databases-0.20.0b3/tests/test_runtime.py +364 -0
  127. pytest_databases-0.20.0b3/tests/test_rustfs.py +582 -0
  128. pytest_databases-0.20.0b3/tests/test_service_ownership.py +408 -0
  129. pytest_databases-0.20.0b3/tests/test_snowflake.py +718 -0
  130. pytest_databases-0.20.0b3/tests/test_spanner.py +552 -0
  131. pytest_databases-0.20.0b3/tests/test_sqlanywhere.py +407 -0
  132. pytest_databases-0.20.0b3/tests/test_sybase.py +690 -0
  133. pytest_databases-0.20.0b3/tests/test_teradata.py +587 -0
  134. pytest_databases-0.20.0b3/tests/test_valkey.py +213 -0
  135. pytest_databases-0.20.0b3/tests/test_yugabyte.py +367 -0
  136. pytest_databases-0.20.0b3/tools/scripts/setup-env.sh +29 -0
  137. pytest_databases-0.20.0b3/uv.lock +4238 -0
  138. pytest_databases-0.19.0/.github/workflows/cd.yaml +0 -27
  139. pytest_databases-0.19.0/.github/workflows/ci.yaml +0 -162
  140. pytest_databases-0.19.0/.pre-commit-config.yaml +0 -31
  141. pytest_databases-0.19.0/docs/changelog.rst +0 -497
  142. pytest_databases-0.19.0/docs/getting-started/basic-usage.rst +0 -34
  143. pytest_databases-0.19.0/docs/getting-started/configuration.rst +0 -43
  144. pytest_databases-0.19.0/docs/getting-started/enabling-plugins.rst +0 -13
  145. pytest_databases-0.19.0/docs/getting-started/installation.rst +0 -58
  146. pytest_databases-0.19.0/docs/supported-databases/azure_blob_storage.rst +0 -61
  147. pytest_databases-0.19.0/docs/supported-databases/bigquery.rst +0 -53
  148. pytest_databases-0.19.0/docs/supported-databases/cockroachdb.rst +0 -53
  149. pytest_databases-0.19.0/docs/supported-databases/elasticsearch.rst +0 -97
  150. pytest_databases-0.19.0/docs/supported-databases/gizmosql.rst +0 -102
  151. pytest_databases-0.19.0/docs/supported-databases/minio.rst +0 -68
  152. pytest_databases-0.19.0/docs/supported-databases/mongodb.rst +0 -76
  153. pytest_databases-0.19.0/docs/supported-databases/oracle.rst +0 -62
  154. pytest_databases-0.19.0/docs/supported-databases/postgres.rst +0 -128
  155. pytest_databases-0.19.0/docs/supported-databases/redis.rst +0 -57
  156. pytest_databases-0.19.0/docs/supported-databases/rustfs.rst +0 -83
  157. pytest_databases-0.19.0/docs/supported-databases/spanner.rst +0 -61
  158. pytest_databases-0.19.0/docs/supported-databases/sqlserver.rst +0 -48
  159. pytest_databases-0.19.0/src/pytest_databases/__init__.py +0 -3
  160. pytest_databases-0.19.0/src/pytest_databases/_service.py +0 -319
  161. pytest_databases-0.19.0/src/pytest_databases/docker/azure_blob.py +0 -123
  162. pytest_databases-0.19.0/src/pytest_databases/docker/bigquery.py +0 -110
  163. pytest_databases-0.19.0/src/pytest_databases/docker/cockroachdb.py +0 -96
  164. pytest_databases-0.19.0/src/pytest_databases/docker/dolt.py +0 -159
  165. pytest_databases-0.19.0/src/pytest_databases/docker/elastic_search.py +0 -135
  166. pytest_databases-0.19.0/src/pytest_databases/docker/gizmosql.py +0 -148
  167. pytest_databases-0.19.0/src/pytest_databases/docker/mariadb.py +0 -228
  168. pytest_databases-0.19.0/src/pytest_databases/docker/minio.py +0 -143
  169. pytest_databases-0.19.0/src/pytest_databases/docker/mongodb.py +0 -146
  170. pytest_databases-0.19.0/src/pytest_databases/docker/mssql.py +0 -227
  171. pytest_databases-0.19.0/src/pytest_databases/docker/mysql.py +0 -289
  172. pytest_databases-0.19.0/src/pytest_databases/docker/oracle.py +0 -180
  173. pytest_databases-0.19.0/src/pytest_databases/docker/postgres.py +0 -1231
  174. pytest_databases-0.19.0/src/pytest_databases/docker/redis.py +0 -171
  175. pytest_databases-0.19.0/src/pytest_databases/docker/rustfs.py +0 -148
  176. pytest_databases-0.19.0/src/pytest_databases/docker/spanner.py +0 -73
  177. pytest_databases-0.19.0/src/pytest_databases/docker/valkey.py +0 -83
  178. pytest_databases-0.19.0/src/pytest_databases/helpers.py +0 -77
  179. pytest_databases-0.19.0/src/pytest_databases/types.py +0 -17
  180. pytest_databases-0.19.0/tests/__init__.py +0 -0
  181. pytest_databases-0.19.0/tests/conftest.py +0 -23
  182. pytest_databases-0.19.0/tests/test_azure_blob.py +0 -78
  183. pytest_databases-0.19.0/tests/test_bigquery.py +0 -60
  184. pytest_databases-0.19.0/tests/test_cockroachdb.py +0 -104
  185. pytest_databases-0.19.0/tests/test_dolt.py +0 -92
  186. pytest_databases-0.19.0/tests/test_elasticsearch.py +0 -60
  187. pytest_databases-0.19.0/tests/test_gizmosql.py +0 -157
  188. pytest_databases-0.19.0/tests/test_mariadb.py +0 -96
  189. pytest_databases-0.19.0/tests/test_minio.py +0 -74
  190. pytest_databases-0.19.0/tests/test_mongodb.py +0 -104
  191. pytest_databases-0.19.0/tests/test_mssql.py +0 -134
  192. pytest_databases-0.19.0/tests/test_mysql.py +0 -103
  193. pytest_databases-0.19.0/tests/test_oracle.py +0 -51
  194. pytest_databases-0.19.0/tests/test_postgres.py +0 -214
  195. pytest_databases-0.19.0/tests/test_redis.py +0 -138
  196. pytest_databases-0.19.0/tests/test_rustfs.py +0 -90
  197. pytest_databases-0.19.0/tests/test_rustfs_config.py +0 -40
  198. pytest_databases-0.19.0/tests/test_spanner.py +0 -49
  199. pytest_databases-0.19.0/tests/test_valkey.py +0 -85
  200. pytest_databases-0.19.0/tests/test_yugabyte.py +0 -116
  201. pytest_databases-0.19.0/uv.lock +0 -6518
  202. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/.github/CODEOWNERS +0 -0
  203. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/.github/dependabot.yaml +0 -0
  204. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/.sourcery.yaml +0 -0
  205. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/.vscode/launch.json +0 -0
  206. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/.vscode/settings.json +0 -0
  207. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/CODEOWNERS +0 -0
  208. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/LICENSE +0 -0
  209. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/docs/.gitignore +0 -0
  210. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/docs/__init__.py +0 -0
  211. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/docs/_static/.gitkeep +0 -0
  212. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/docs/_static/custom.css +0 -0
  213. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/docs/_static/logo.svg +0 -0
  214. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/docs/contribution-guide.rst +0 -0
  215. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/docs/getting-started/index.rst +0 -0
  216. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/docs/getting-started/next-steps.rst +0 -0
  217. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/docs/index.rst +0 -0
  218. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/docs/supported-databases/dolt.rst +0 -0
  219. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/scripts/convert_docs.sh +0 -0
  220. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/scripts/install-hatch.sh +0 -0
  221. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/sonar-project.properties +0 -0
  222. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/src/pytest_databases/py.typed +0 -0
  223. {pytest_databases-0.19.0/scripts → pytest_databases-0.20.0b3/tests}/__init__.py +0 -0
  224. {pytest_databases-0.19.0 → pytest_databases-0.20.0b3}/tests/test_service_host_port.py +0 -0
@@ -0,0 +1,347 @@
1
+ {
2
+ "schema_version": 1,
3
+ "supported_python_versions": ["3.11", "3.12", "3.13", "3.14", "3.15"],
4
+ "shared_all_provider_paths": [
5
+ "src/pytest_databases/__init__.py",
6
+ "src/pytest_databases/_service.py",
7
+ "src/pytest_databases/docker/__init__.py",
8
+ "src/pytest_databases/embedded/__init__.py",
9
+ "src/pytest_databases/helpers.py",
10
+ "src/pytest_databases/runtime.py",
11
+ "src/pytest_databases/types.py",
12
+ "tests/conftest.py"
13
+ ],
14
+ "provider_scoped_dependency_paths": ["pyproject.toml", "uv.lock"],
15
+ "docs_only_globs": [
16
+ "*.md",
17
+ "*.rst",
18
+ "docs/**",
19
+ "scripts/build_docs.py",
20
+ "scripts/convert_docs.sh"
21
+ ],
22
+ "metadata_only_globs": [
23
+ ".editorconfig",
24
+ ".git-blame-ignore-revs",
25
+ ".github/CODEOWNERS",
26
+ ".github/dependabot.yaml",
27
+ ".github/release.yml",
28
+ ".github/workflows/docs.yml",
29
+ ".github/workflows/pr-title.yaml",
30
+ ".github/workflows/release.yaml",
31
+ ".gitignore",
32
+ ".pre-commit-config.yaml",
33
+ ".sourcery.yaml",
34
+ ".vscode/**",
35
+ "CODEOWNERS",
36
+ "LICENSE",
37
+ "Makefile",
38
+ "scripts/__init__.py",
39
+ "scripts/install-hatch.sh",
40
+ "sonar-project.properties",
41
+ "src/pytest_databases/__metadata__.py",
42
+ "src/pytest_databases/py.typed",
43
+ "tests/__init__.py",
44
+ "tests/test_ci_*.py",
45
+ "tools/scripts/**"
46
+ ],
47
+ "compatibility_test_paths": [
48
+ "tests/test_azure_blob.py::test_plugin_imports_without_azure_storage_blob",
49
+ "tests/test_bigquery.py::test_plugin_imports_without_google_cloud_bigquery",
50
+ "tests/test_cloudflare.py::test_plugin_imports_without_cloudflare_clients",
51
+ "tests/test_cockroachdb.py::test_plugin_imports_without_psycopg",
52
+ "tests/test_db2.py::test_plugin_imports_without_db2_clients",
53
+ "tests/test_doltgres.py::test_plugin_imports_without_psycopg",
54
+ "tests/test_elasticsearch.py::test_plugin_imports_without_elasticsearch_clients",
55
+ "tests/test_floci.py::test_plugin_imports_without_cloud_sdks",
56
+ "tests/test_gizmosql.py::test_plugin_imports_without_adbc_driver_flightsql",
57
+ "tests/test_hardcharger.py::test_plugin_imports_without_adbc_driver_hardcharger",
58
+ "tests/test_localstack.py::test_plugin_imports_without_aws_clients",
59
+ "tests/test_mongodb.py::test_plugin_imports_without_pymongo",
60
+ "tests/test_mssql.py::test_plugin_imports_without_pymssql",
61
+ "tests/test_oracle.py::test_plugin_imports_without_oracledb",
62
+ "tests/test_postgres.py::test_plugin_imports_without_psycopg",
63
+ "tests/test_embedded_postgres.py::test_plugin_imports_without_pgembed",
64
+ "tests/test_pubsub.py::test_plugin_imports_without_google_cloud_pubsub",
65
+ "tests/test_rabbitmq.py::test_plugin_imports_without_amqp_clients",
66
+ "tests/test_redis.py::test_plugin_imports_without_redis",
67
+ "tests/test_redpanda.py::test_plugin_imports_without_kafka_clients",
68
+ "tests/test_snowflake.py::test_plugin_imports_without_snowflake_clients",
69
+ "tests/test_spanner.py::test_plugin_imports_without_google_cloud_spanner",
70
+ "tests/test_sqlanywhere.py::test_plugin_imports_without_sqlanydb",
71
+ "tests/test_sybase.py::test_plugin_imports_without_sybase_clients",
72
+ "tests/test_teradata.py::test_plugin_imports_without_teradata_clients",
73
+ "tests/test_valkey.py::test_plugin_imports_without_valkey"
74
+ ],
75
+ "providers": {
76
+ "azure_blob": {
77
+ "source_globs": ["src/pytest_databases/docker/azure_blob.py"],
78
+ "test_paths": ["tests/test_azure_blob.py"],
79
+ "images": ["mcr.microsoft.com/azure-storage/azurite"],
80
+ "docs_globs": ["docs/supported-databases/azure_blob_storage.rst"]
81
+ },
82
+ "bigquery": {
83
+ "source_globs": ["src/pytest_databases/docker/bigquery.py"],
84
+ "test_paths": ["tests/test_bigquery.py"],
85
+ "images": ["ghcr.io/goccy/bigquery-emulator:0.8.1"],
86
+ "docs_globs": ["docs/supported-databases/bigquery.rst"]
87
+ },
88
+ "cloudflare": {
89
+ "source_globs": ["src/pytest_databases/docker/cloudflare.py"],
90
+ "test_paths": ["tests/test_cloudflare.py"],
91
+ "images": ["node:22-slim"],
92
+ "docs_globs": ["docs/supported-databases/cloudflare.rst"]
93
+ },
94
+ "cockroachdb": {
95
+ "source_globs": ["src/pytest_databases/docker/cockroachdb.py"],
96
+ "test_paths": ["tests/test_cockroachdb.py"],
97
+ "images": ["cockroachdb/cockroach:latest"],
98
+ "docs_globs": ["docs/supported-databases/cockroachdb.rst"]
99
+ },
100
+ "db2": {
101
+ "source_globs": ["src/pytest_databases/docker/db2.py"],
102
+ "test_paths": ["tests/test_db2.py"],
103
+ "images": ["icr.io/db2_community/db2:12.1.5.0"],
104
+ "docs_globs": ["docs/supported-databases/db2.rst"]
105
+ },
106
+ "runtime": {
107
+ "source_globs": [
108
+ ".github/workflows/ci.yaml",
109
+ "scripts/ci/__init__.py",
110
+ "scripts/ci/check_required_jobs.py",
111
+ "scripts/ci/pull_images.py",
112
+ "scripts/ci/run_tests.py",
113
+ "scripts/ci/select_provider_tests.py",
114
+ "src/pytest_databases/_service.py"
115
+ ],
116
+ "test_paths": [
117
+ "tests/test_docker_service.py",
118
+ "tests/test_runtime.py",
119
+ "tests/test_service_host_port.py",
120
+ "tests/test_service_ownership.py"
121
+ ],
122
+ "images": ["busybox:latest"],
123
+ "docs_globs": ["docs/getting-started/**"]
124
+ },
125
+ "dolt": {
126
+ "source_globs": ["src/pytest_databases/docker/dolt.py"],
127
+ "test_paths": ["tests/test_dolt.py"],
128
+ "images": ["dolthub/dolt-sql-server:latest"],
129
+ "docs_globs": ["docs/supported-databases/dolt.rst"]
130
+ },
131
+ "doltgres": {
132
+ "source_globs": ["src/pytest_databases/docker/doltgres.py"],
133
+ "test_paths": ["tests/test_doltgres.py"],
134
+ "images": ["dolthub/doltgresql:latest"],
135
+ "docs_globs": ["docs/supported-databases/doltgres.rst"]
136
+ },
137
+ "elasticsearch": {
138
+ "source_globs": ["src/pytest_databases/docker/elastic_search.py"],
139
+ "test_paths": ["tests/test_elasticsearch.py"],
140
+ "images": [
141
+ "elasticsearch:7.17.19",
142
+ "elasticsearch:8.13.0",
143
+ "elasticsearch:9.5.5"
144
+ ],
145
+ "docs_globs": ["docs/supported-databases/elasticsearch.rst"]
146
+ },
147
+ "floci": {
148
+ "source_globs": ["src/pytest_databases/docker/floci.py"],
149
+ "test_paths": ["tests/test_floci.py"],
150
+ "images": [
151
+ "floci/floci-az:0.16.0",
152
+ "floci/floci-gcp:0.12.0",
153
+ "floci/floci-oci:0.6.0",
154
+ "floci/floci:2.4.0"
155
+ ],
156
+ "docs_globs": ["docs/supported-databases/floci.rst"]
157
+ },
158
+ "gizmosql": {
159
+ "source_globs": ["src/pytest_databases/docker/gizmosql.py"],
160
+ "test_paths": ["tests/test_gizmosql.py"],
161
+ "images": ["gizmodata/gizmosql:latest"],
162
+ "docs_globs": ["docs/supported-databases/gizmosql.rst"]
163
+ },
164
+ "hardcharger": {
165
+ "source_globs": ["src/pytest_databases/docker/hardcharger.py"],
166
+ "test_paths": ["tests/test_hardcharger.py"],
167
+ "images": ["ghcr.io/gizmodata/hardcharger:latest"],
168
+ "docs_globs": ["docs/supported-databases/hardcharger.rst"]
169
+ },
170
+ "localstack": {
171
+ "source_globs": ["src/pytest_databases/docker/localstack.py"],
172
+ "test_paths": ["tests/test_localstack.py"],
173
+ "images": ["ministackorg/ministack:latest"],
174
+ "docs_globs": ["docs/supported-databases/localstack.rst"]
175
+ },
176
+ "mariadb": {
177
+ "source_globs": ["src/pytest_databases/docker/mariadb.py"],
178
+ "test_paths": ["tests/test_mariadb.py"],
179
+ "images": [
180
+ "mariadb:11.3",
181
+ "mariadb:11.4",
182
+ "mariadb:11.8",
183
+ "mariadb:12.2",
184
+ "mariadb:12.3",
185
+ "mariadb:13.0"
186
+ ],
187
+ "docs_globs": ["docs/supported-databases/mariadb.rst"]
188
+ },
189
+ "minio": {
190
+ "source_globs": ["src/pytest_databases/docker/minio.py"],
191
+ "test_paths": ["tests/test_minio.py"],
192
+ "images": ["cgr.dev/chainguard/minio:latest"],
193
+ "docs_globs": ["docs/supported-databases/minio.rst"]
194
+ },
195
+ "mongodb": {
196
+ "source_globs": ["src/pytest_databases/docker/mongodb.py"],
197
+ "test_paths": ["tests/test_mongodb.py"],
198
+ "images": ["mongo:latest"],
199
+ "docs_globs": ["docs/supported-databases/mongodb.rst"]
200
+ },
201
+ "mssql": {
202
+ "source_globs": ["src/pytest_databases/docker/mssql.py"],
203
+ "test_paths": ["tests/test_mssql.py"],
204
+ "images": [
205
+ "mcr.microsoft.com/mssql/server:2022-latest",
206
+ "mcr.microsoft.com/mssql/server:2025-latest"
207
+ ],
208
+ "docs_globs": ["docs/supported-databases/sqlserver.rst"]
209
+ },
210
+ "mysql": {
211
+ "source_globs": ["src/pytest_databases/docker/mysql.py"],
212
+ "test_paths": ["tests/test_mysql.py"],
213
+ "images": [
214
+ "mysql:5.6",
215
+ "mysql:5.7",
216
+ "mysql:8",
217
+ "mysql:8.4",
218
+ "mysql:9.6",
219
+ "mysql:9.7"
220
+ ],
221
+ "docs_globs": ["docs/supported-databases/mysql.rst"]
222
+ },
223
+ "oracle": {
224
+ "source_globs": ["src/pytest_databases/docker/oracle.py"],
225
+ "test_paths": ["tests/test_oracle.py"],
226
+ "images": [
227
+ "gvenzl/oracle-free:23-slim-faststart",
228
+ "gvenzl/oracle-xe:18-slim-faststart",
229
+ "container-registry.oracle.com/database/adb-free:latest-26ai"
230
+ ],
231
+ "docs_globs": ["docs/supported-databases/oracle.rst"]
232
+ },
233
+ "postgres": {
234
+ "source_globs": [
235
+ "src/pytest_databases/docker/postgres.py",
236
+ "src/pytest_databases/embedded/_pgwire.py",
237
+ "src/pytest_databases/embedded/postgres.py"
238
+ ],
239
+ "test_paths": ["tests/test_postgres.py", "tests/test_embedded_postgres.py"],
240
+ "images": [
241
+ "gcr.io/alloydb-omni/alloydbomni:15",
242
+ "gcr.io/alloydb-omni/alloydbomni:16",
243
+ "gcr.io/alloydb-omni/alloydbomni:17",
244
+ "gcr.io/alloydb-omni/alloydbomni:18",
245
+ "paradedb/paradedb:latest-pg15",
246
+ "paradedb/paradedb:latest-pg16",
247
+ "paradedb/paradedb:latest-pg17",
248
+ "paradedb/paradedb:latest-pg18",
249
+ "pgvector/pgvector:pg13",
250
+ "pgvector/pgvector:pg14",
251
+ "pgvector/pgvector:pg15",
252
+ "pgvector/pgvector:pg16",
253
+ "pgvector/pgvector:pg17",
254
+ "pgvector/pgvector:pg18",
255
+ "postgres:11",
256
+ "postgres:12",
257
+ "postgres:13",
258
+ "postgres:14",
259
+ "postgres:15",
260
+ "postgres:16",
261
+ "postgres:17",
262
+ "postgres:18"
263
+ ],
264
+ "docs_globs": ["docs/supported-databases/postgres.rst", "docs/supported-databases/embedded_postgres.rst"]
265
+ },
266
+ "pubsub": {
267
+ "source_globs": ["src/pytest_databases/docker/pubsub.py"],
268
+ "test_paths": ["tests/test_pubsub.py"],
269
+ "images": [
270
+ "gcr.io/google.com/cloudsdktool/google-cloud-cli:577.0.0-emulators"
271
+ ],
272
+ "docs_globs": ["docs/supported-databases/pubsub.rst"]
273
+ },
274
+ "rabbitmq": {
275
+ "source_globs": ["src/pytest_databases/docker/rabbitmq.py"],
276
+ "test_paths": ["tests/test_rabbitmq.py"],
277
+ "images": ["rabbitmq:4.3-management"],
278
+ "docs_globs": ["docs/supported-databases/rabbitmq.rst"]
279
+ },
280
+ "redis": {
281
+ "source_globs": ["src/pytest_databases/docker/redis.py"],
282
+ "test_paths": ["tests/test_redis.py"],
283
+ "images": [
284
+ "docker.dragonflydb.io/dragonflydb/dragonfly",
285
+ "eqalpha/keydb",
286
+ "redis:latest",
287
+ "valkey/valkey"
288
+ ],
289
+ "docs_globs": ["docs/supported-databases/redis.rst"]
290
+ },
291
+ "redpanda": {
292
+ "source_globs": ["src/pytest_databases/docker/redpanda.py"],
293
+ "test_paths": ["tests/test_redpanda.py"],
294
+ "images": ["docker.redpanda.com/redpandadata/redpanda:v26.1.13"],
295
+ "docs_globs": ["docs/supported-databases/redpanda.rst"]
296
+ },
297
+ "rustfs": {
298
+ "source_globs": ["src/pytest_databases/docker/rustfs.py"],
299
+ "test_paths": ["tests/test_rustfs.py"],
300
+ "images": ["rustfs/rustfs:latest"],
301
+ "docs_globs": ["docs/supported-databases/rustfs.rst"]
302
+ },
303
+ "snowflake": {
304
+ "source_globs": ["src/pytest_databases/docker/snowflake.py"],
305
+ "test_paths": ["tests/test_snowflake.py"],
306
+ "images": ["embucket/embucket:0.2.2"],
307
+ "docs_globs": ["docs/supported-databases/snowflake.rst"]
308
+ },
309
+ "spanner": {
310
+ "source_globs": ["src/pytest_databases/docker/spanner.py"],
311
+ "test_paths": ["tests/test_spanner.py"],
312
+ "images": ["gcr.io/cloud-spanner-emulator/emulator:latest"],
313
+ "docs_globs": ["docs/supported-databases/spanner.rst"]
314
+ },
315
+ "sqlanywhere": {
316
+ "source_globs": ["src/pytest_databases/docker/sqlanywhere.py"],
317
+ "test_paths": ["tests/test_sqlanywhere.py"],
318
+ "images": ["jaschweder/sybase:latest"],
319
+ "docs_globs": ["docs/supported-databases/sqlanywhere.rst"]
320
+ },
321
+ "sybase": {
322
+ "source_globs": ["src/pytest_databases/docker/sybase.py"],
323
+ "test_paths": ["tests/test_sybase.py"],
324
+ "images": ["datagrip/sybase:16.0"],
325
+ "docs_globs": ["docs/supported-databases/sybase.rst"]
326
+ },
327
+ "teradata": {
328
+ "source_globs": ["src/pytest_databases/docker/teradata.py"],
329
+ "test_paths": ["tests/test_teradata.py"],
330
+ "images": [],
331
+ "image_required": false,
332
+ "docs_globs": ["docs/supported-databases/teradata.rst"]
333
+ },
334
+ "valkey": {
335
+ "source_globs": ["src/pytest_databases/docker/valkey.py"],
336
+ "test_paths": ["tests/test_valkey.py"],
337
+ "images": ["valkey/valkey:latest"],
338
+ "docs_globs": ["docs/supported-databases/valkey.rst"]
339
+ },
340
+ "yugabyte": {
341
+ "source_globs": ["src/pytest_databases/docker/yugabyte.py"],
342
+ "test_paths": ["tests/test_yugabyte.py"],
343
+ "images": ["software.yugabyte.com/yugabytedb/yugabyte:latest"],
344
+ "docs_globs": ["docs/supported-databases/yugabyte.rst"]
345
+ }
346
+ }
347
+ }
@@ -0,0 +1,332 @@
1
+ name: Tests And Linting
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+ types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]
9
+ schedule:
10
+ - cron: "0 3 * * *"
11
+ workflow_dispatch:
12
+
13
+ permissions:
14
+ contents: read
15
+
16
+ concurrency:
17
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
18
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
19
+
20
+ env:
21
+ PYTHONUNBUFFERED: "1"
22
+ FORCE_COLOR: "1"
23
+
24
+ jobs:
25
+ select:
26
+ name: Select provider tests
27
+ runs-on: ubuntu-latest
28
+ outputs:
29
+ matrix: ${{ steps.select.outputs.matrix }}
30
+ mode: ${{ steps.select.outputs.mode }}
31
+ providers: ${{ steps.select.outputs.providers }}
32
+ run_compatibility: ${{ steps.select.outputs.run_compatibility }}
33
+ run_docs: ${{ steps.select.outputs.run_docs }}
34
+ run_provider_tests: ${{ steps.select.outputs.run_provider_tests }}
35
+ run_quality: ${{ steps.select.outputs.run_quality }}
36
+ steps:
37
+ - name: Check out repository
38
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
39
+ with:
40
+ fetch-depth: 0
41
+ persist-credentials: false
42
+
43
+ - name: Set up uv
44
+ uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
45
+
46
+ - name: Install Python
47
+ run: uv python install 3.12
48
+
49
+ - name: Select provider scope
50
+ id: select
51
+ env:
52
+ BASE_SHA: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || github.event.before }}
53
+ HEAD_SHA: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
54
+ LABEL_FULL: ${{ contains(github.event.pull_request.labels.*.name, 'ci:full') }}
55
+ run: |
56
+ args=(--github-output "$GITHUB_OUTPUT" --summary "$GITHUB_STEP_SUMMARY")
57
+ full_reason=""
58
+ if [[ "$GITHUB_EVENT_NAME" == "schedule" ]]; then
59
+ full_reason="nightly schedule"
60
+ elif [[ "$GITHUB_EVENT_NAME" == "workflow_dispatch" ]]; then
61
+ full_reason="manual workflow dispatch"
62
+ elif [[ "$LABEL_FULL" == "true" ]]; then
63
+ full_reason="ci:full label"
64
+ elif [[ -z "$BASE_SHA" || "$BASE_SHA" =~ ^0+$ ]]; then
65
+ full_reason="unavailable push base"
66
+ fi
67
+ if [[ -n "$full_reason" ]]; then
68
+ args+=(--full --full-reason "$full_reason")
69
+ else
70
+ args+=(--base-ref "$BASE_SHA" --head-ref "$HEAD_SHA")
71
+ fi
72
+ uv run --frozen --python 3.12 python -m scripts.ci.select_provider_tests "${args[@]}"
73
+
74
+ compatibility:
75
+ name: Clientless compatibility / Python ${{ matrix.python-version }} (${{ matrix.pytest-spec }})
76
+ if: needs.select.outputs.run_compatibility == 'true'
77
+ needs: select
78
+ runs-on: ubuntu-latest
79
+ timeout-minutes: 10
80
+ continue-on-error: ${{ matrix.python-version == '3.15' }}
81
+ strategy:
82
+ fail-fast: false
83
+ matrix:
84
+ python-version: ["3.11", "3.12", "3.13", "3.14", "3.15"]
85
+ pytest-spec: ["pytest>=9"]
86
+ include:
87
+ - python-version: "3.12"
88
+ pytest-spec: "pytest>=7,<8"
89
+ - python-version: "3.12"
90
+ pytest-spec: "pytest>=8,<9"
91
+
92
+ steps:
93
+ - name: Check out repository
94
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
95
+ with:
96
+ persist-credentials: false
97
+
98
+ - name: Set up uv
99
+ uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
100
+
101
+ - name: Install Python
102
+ env:
103
+ PYTHON_VERSION: ${{ matrix.python-version }}
104
+ run: uv python install "$PYTHON_VERSION"
105
+
106
+ - name: Install clientless test dependencies
107
+ env:
108
+ PYTHON_VERSION: ${{ matrix.python-version }}
109
+ PYTEST_SPEC: ${{ matrix.pytest-spec }}
110
+ run: |
111
+ uv sync --frozen --no-dev --group test --python "$PYTHON_VERSION"
112
+ if [[ "$PYTEST_SPEC" != "pytest>=9" ]]; then
113
+ uv pip install "$PYTEST_SPEC"
114
+ fi
115
+
116
+ - name: Run clientless compatibility tests
117
+ env:
118
+ PYTHON_VERSION: ${{ matrix.python-version }}
119
+ PYTEST_SPEC: ${{ matrix.pytest-spec }}
120
+ run: |
121
+ if [[ "$PYTHON_VERSION" == "3.12" && "$PYTEST_SPEC" == "pytest>=9" ]]; then
122
+ uv run --no-sync python -m scripts.ci.run_tests --compatibility --coverage
123
+ else
124
+ uv run --no-sync python -m scripts.ci.run_tests --compatibility
125
+ fi
126
+
127
+ - name: Upload coverage data
128
+ if: matrix.python-version == '3.12' && matrix.pytest-spec == 'pytest>=9'
129
+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
130
+ with:
131
+ name: coverage-data-compatibility
132
+ path: .coverage*
133
+ include-hidden-files: true
134
+ if-no-files-found: ignore
135
+
136
+ quality:
137
+ name: Quality
138
+ if: needs.select.outputs.run_quality == 'true'
139
+ needs: select
140
+ runs-on: ubuntu-latest
141
+ timeout-minutes: 15
142
+ steps:
143
+ - name: Check out repository
144
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
145
+ with:
146
+ persist-credentials: false
147
+
148
+ - name: Set up uv
149
+ uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
150
+
151
+ - name: Install Python
152
+ run: uv python install 3.12
153
+
154
+ - name: Install dependencies
155
+ run: uv sync --frozen --all-extras --dev --python 3.12
156
+
157
+ - name: Run lint, type checks, and security checks
158
+ run: make lint
159
+
160
+ - name: Run CI selector unit tests
161
+ run: uv run --no-sync pytest tests/test_ci_provider_groups.py -o addopts=""
162
+
163
+ docs:
164
+ name: Documentation
165
+ if: needs.select.outputs.run_docs == 'true'
166
+ needs: select
167
+ runs-on: ubuntu-latest
168
+ timeout-minutes: 15
169
+ steps:
170
+ - name: Check out repository
171
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
172
+ with:
173
+ persist-credentials: false
174
+
175
+ - name: Set up uv
176
+ uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
177
+
178
+ - name: Install Python
179
+ run: uv python install 3.12
180
+
181
+ - name: Install dependencies
182
+ run: uv sync --frozen --all-extras --dev --python 3.12
183
+
184
+ - name: Build documentation
185
+ run: make docs
186
+
187
+ provider:
188
+ name: Provider / ${{ matrix.provider }} / Python ${{ matrix.python-version }}
189
+ if: needs.select.outputs.run_provider_tests == 'true'
190
+ needs: select
191
+ runs-on: ubuntu-latest
192
+ timeout-minutes: 45
193
+ continue-on-error: ${{ matrix.python-version == '3.15' }}
194
+ strategy:
195
+ fail-fast: false
196
+ matrix: ${{ fromJSON(needs.select.outputs.matrix) }}
197
+
198
+ steps:
199
+ - name: Check out repository
200
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
201
+ with:
202
+ persist-credentials: false
203
+
204
+ - name: Set up uv
205
+ uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
206
+
207
+ - name: Install Python
208
+ env:
209
+ PYTHON_VERSION: ${{ matrix.python-version }}
210
+ run: uv python install "$PYTHON_VERSION"
211
+
212
+ - name: Install dependencies
213
+ env:
214
+ PYTHON_VERSION: ${{ matrix.python-version }}
215
+ run: uv sync --frozen --all-extras --dev --python "$PYTHON_VERSION"
216
+
217
+ - name: Pull provider images
218
+ env:
219
+ PROVIDER: ${{ matrix.provider }}
220
+ run: uv run --no-sync python -m scripts.ci.pull_images --provider "$PROVIDER"
221
+
222
+ - name: Run provider tests with coverage
223
+ if: matrix.python-version == '3.12'
224
+ env:
225
+ PROVIDER: ${{ matrix.provider }}
226
+ run: uv run --no-sync python -m scripts.ci.run_tests --provider "$PROVIDER" --coverage
227
+
228
+ - name: Run provider tests
229
+ if: matrix.python-version != '3.12'
230
+ env:
231
+ PROVIDER: ${{ matrix.provider }}
232
+ run: uv run --no-sync python -m scripts.ci.run_tests --provider "$PROVIDER"
233
+
234
+ - name: Name raw coverage data
235
+ if: matrix.python-version == '3.12'
236
+ env:
237
+ PROVIDER: ${{ matrix.provider }}
238
+ run: |
239
+ uv run --no-sync coverage combine
240
+ mv .coverage ".coverage.$PROVIDER"
241
+
242
+ - name: Upload raw coverage data
243
+ if: matrix.python-version == '3.12'
244
+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
245
+ with:
246
+ name: coverage-data-${{ matrix.provider }}
247
+ path: .coverage.${{ matrix.provider }}
248
+ include-hidden-files: true
249
+
250
+ coverage:
251
+ name: Coverage
252
+ if: needs.select.outputs.run_provider_tests == 'true' && needs.provider.result == 'success'
253
+ needs: [select, provider]
254
+ runs-on: ubuntu-latest
255
+ steps:
256
+ - name: Check out repository
257
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
258
+ with:
259
+ persist-credentials: false
260
+
261
+ - name: Set up uv
262
+ uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
263
+
264
+ - name: Install Python
265
+ run: uv python install 3.12
266
+
267
+ - name: Install coverage dependencies
268
+ run: uv sync --frozen --no-dev --group test --python 3.12
269
+
270
+ - name: Download raw coverage data
271
+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
272
+ with:
273
+ pattern: coverage-data-*
274
+ path: coverage-data
275
+ merge-multiple: true
276
+
277
+ - name: Combine coverage data
278
+ run: |
279
+ uv run --no-sync coverage combine coverage-data
280
+ uv run --no-sync coverage xml
281
+
282
+ - name: Upload coverage report to Codecov
283
+ uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
284
+ with:
285
+ token: ${{ secrets.CODECOV_TOKEN }}
286
+ slug: litestar-org/pytest-databases
287
+ files: coverage.xml
288
+ fail_ci_if_error: false
289
+
290
+ ci-required:
291
+ name: CI required
292
+ if: ${{ !cancelled() }}
293
+ needs: [select, quality, compatibility, docs, provider, coverage]
294
+ runs-on: ubuntu-latest
295
+ steps:
296
+ - name: Check out repository
297
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
298
+ with:
299
+ persist-credentials: false
300
+
301
+ - name: Set up uv
302
+ uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
303
+
304
+ - name: Install Python
305
+ run: uv python install 3.12
306
+
307
+ - name: Validate required job results
308
+ env:
309
+ SELECT_RESULT: ${{ needs.select.result }}
310
+ QUALITY_RESULT: ${{ needs.quality.result }}
311
+ COMPATIBILITY_RESULT: ${{ needs.compatibility.result }}
312
+ DOCS_RESULT: ${{ needs.docs.result }}
313
+ PROVIDER_RESULT: ${{ needs.provider.result }}
314
+ COVERAGE_RESULT: ${{ needs.coverage.result }}
315
+ EXPECT_QUALITY: ${{ needs.select.outputs.run_quality }}
316
+ EXPECT_COMPATIBILITY: ${{ needs.select.outputs.run_compatibility }}
317
+ EXPECT_DOCS: ${{ needs.select.outputs.run_docs }}
318
+ EXPECT_PROVIDER: ${{ needs.select.outputs.run_provider_tests }}
319
+ EXPECT_COVERAGE: ${{ needs.select.outputs.run_provider_tests }}
320
+ run: >-
321
+ uv run --no-sync --python 3.12 python -m scripts.ci.check_required_jobs
322
+ --select "$SELECT_RESULT"
323
+ --quality "$QUALITY_RESULT"
324
+ --compatibility "$COMPATIBILITY_RESULT"
325
+ --docs "$DOCS_RESULT"
326
+ --provider "$PROVIDER_RESULT"
327
+ --coverage "$COVERAGE_RESULT"
328
+ --expect-quality "$EXPECT_QUALITY"
329
+ --expect-compatibility "$EXPECT_COMPATIBILITY"
330
+ --expect-docs "$EXPECT_DOCS"
331
+ --expect-provider "$EXPECT_PROVIDER"
332
+ --expect-coverage "$EXPECT_COVERAGE"