Skip to content

Improve callback handlers (#134) #323

Improve callback handlers (#134)

Improve callback handlers (#134) #323

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
types:
- opened
- synchronize
jobs:
ci:
strategy:
fail-fast: false
matrix:
python-version: [3.9]
os: [ubuntu-22.04]
runs-on: ${{ matrix.os }}
services:
rabbitmq-streaming:
image: pivotalrabbitmq/rabbitmq-stream
env:
RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS: "-rabbitmq_stream advertised_host localhost"
ports:
- 5552:5552
- 15672:15672
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- 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 --check-only .
- name: black check
run: poetry run black --check .
- name: flake8
run: poetry run flake8 --exclude=venv,local_tests,docs/examples --max-line-length=120 --ignore=E203,W503
- name: mypy
run: |
poetry add --group dev requests
poetry add --group dev types-requests
poetry run mypy .
- name: poetry run pytest
run: poetry run pytest