Skip to content

Better abstractions #76

Better abstractions

Better abstractions #76

Workflow file for this run

name: Test
on:
push:
branches: [dev, main]
paths: [src/**, tests/**]
pull_request:
paths: [src/**, tests/**]
workflow_call:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python_version: ["3.10", "3.11", "3.12", "3.13"]
services:
rabbitmq:
image: rabbitmq:3.13.6
ports:
- 5672:5672
options: >-
--health-cmd "rabbitmq-diagnostics -q ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python_version }}
- name: Install UV
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
- name: Install dependencies
run: uv sync --all-extras
- name: Wait for RabbitMQ to be ready
run: |
timeout 60s bash -c 'until nc -z localhost 5672; do sleep 1; done'
sleep 5 # Additional wait to ensure RabbitMQ is fully initialized
- name: Run tests
env:
PYTEST_AMQP_URI: amqp://guest:guest@localhost:5672/
run: uv run pytest