-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1.07 KB
/
test-rabbitmq.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: RabbitMQ Tests
on:
push:
branches:
- main
paths:
- 'connectiva/protocols/amqp_protocol.py'
- 'tests/test_amqp_protocol.py'
- 'pyproject.toml'
pull_request:
branches:
- main
paths:
- 'connectiva/protocols/amqp_protocol.py'
- 'tests/test_amqp_protocol.py'
- 'pyproject.toml'
jobs:
base-setup:
uses: ./.github/workflows/base.yml
with:
python-version: ${{ matrix.python-version }}
test-rabbitmq:
needs: base-setup # This ensures that base-setup runs before this job
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: [3.8, 3.9, 3.10, 3.11, 3.12]
steps:
- name: Run RabbitMQ Tests
run: |
echo "Running RabbitMQ tests on Python ${{ matrix.python-version }}..."
docker compose -f docker/docker-compose.rabbitmq.yml up -d
poetry run python -m unittest discover -s tests -p 'test_amqp_protocol.py'
docker compose -f docker/docker-compose.rabbitmq.yml down