Skip to content

Commit d5fb76a

Browse files
committed
ci: run the release test step against a real redis:7 like the conformance job
1 parent 79618d3 commit d5fb76a

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

‎.github/workflows/release.yml‎

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,18 @@ jobs:
1414
# Recommended for PyPI Trusted Publishing — configure a "pypi" environment +
1515
# a trusted publisher on PyPI (repo BabelQueue/babelqueue-python, this workflow).
1616
environment: pypi
17+
# redis_layout (conformance 1.6.0) drives the real Lua scripts: a real redis:7 is mandatory,
18+
# exactly as in ci.yml's `conformance` job — without it the cases are reported as failures.
19+
services:
20+
redis:
21+
image: redis:7
22+
ports:
23+
- 6379:6379
24+
options: >-
25+
--health-cmd "redis-cli ping"
26+
--health-interval 5s
27+
--health-timeout 3s
28+
--health-retries 10
1729
env:
1830
# The pinned conformance release (ADR-0032). Keep identical to ci.yml.
1931
BQ_CONFORMANCE_VERSION: 1.6.0
@@ -40,9 +52,12 @@ jobs:
4052
- name: Install & test (writes results.json)
4153
env:
4254
BQ_CONFORMANCE_RESULTS: ${{ runner.temp }}/results.json
55+
# A real redis:7 is mandatory: no silent skip or fakeredis fallback (shared runner contract).
56+
BQ_REQUIRE_REDIS: "1"
57+
BABELQUEUE_TEST_REDIS: redis://localhost:6379/0
4358
run: |
4459
python -m pip install --upgrade pip build
45-
pip install -e ".[dev,celery,django,otel]" opentelemetry-sdk jsonschema
60+
pip install -e ".[dev,celery,django,otel,redis]" opentelemetry-sdk jsonschema
4661
pytest
4762
test -s "$BQ_CONFORMANCE_RESULTS" # the conformance run must have produced results.json
4863

0 commit comments

Comments
 (0)