Skip to content

Commit

Permalink
add rabbitmq service to github action test
Browse files Browse the repository at this point in the history
  • Loading branch information
zerlok committed Nov 14, 2024
1 parent 8b3fd3a commit a000513
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@ jobs:
run: poetry run ruff format --check
test:
runs-on: ubuntu-latest
services:
rabbitmq:
image: rabbitmq:4.0.2-management-alpine
ports:
- 5672:5672
options: >-
--health-cmd="curl --fail http://localhost:15672/cli/ > /dev/null"
--health-timeout=30s
--health-retries=3
strategy:
fail-fast: false
matrix:
Expand All @@ -72,7 +81,13 @@ jobs:
- name: Install the project dependencies
run: poetry install --all-extras
- name: Run pytest
run: poetry run pytest --cov-report=xml
run: |-
poetry run pytest
--broker-url=amqp://guest:guest@localhost:5672/
--broker-retry-delay=3
--broker-retry-delay-mode=constant
--broker-retries-limit=10
--cov-report=xml
# TODO: enable codecov
# - name: Upload results to Codecov
# uses: codecov/codecov-action@v4
Expand Down

0 comments on commit a000513

Please sign in to comment.