-
Notifications
You must be signed in to change notification settings - Fork 10
51 lines (47 loc) · 1.38 KB
/
build-test.yaml
File metadata and controls
51 lines (47 loc) · 1.38 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
name: Test against a RabbitMQ broker
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
jobs:
ci:
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]
os: [ubuntu-24.04]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Start RabbitMQ
id: start-rabbitmq
run: ${{ github.workspace }}/.ci/ubuntu/gha-setup.sh
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: 1.4.2
virtualenvs-create: true
virtualenvs-in-project: false
- name: poetry install
run: poetry install --no-root
- name: isort check-only
run: poetry run isort --skip rabbitmq_amqp_python_client/qpid --check-only .
- name: black check
run: poetry run black --check .
- name: flake8
run: poetry run flake8 --exclude=venv,local_tests,docs/examples,rabbitmq_amqp_python_client/qpid --max-line-length=120 --ignore=E203,W503
- name: mypy
run: |
poetry run mypy --exclude=rabbitmq_amqp_python_client/qpid .
- name: poetry run pytest
env:
PYTHONUNBUFFERED: "1"
run: poetry run pytest