Skip to content

Repo consistency

Repo consistency #1302

Workflow file for this run

name: Run tests
on: [pull_request]
jobs:
test:
runs-on: ubuntu-latest
services:
rabbitmq:
image: rabbitmq:3.8
ports:
- 5672:5672
redis:
image: redis:6.0
ports:
- 6379:6379
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
python-version: 3.9.15
- uses: abatilo/[email protected]
with:
poetry-version: 1.4.2
- name: Install dependancies
run: |
poetry install
- name: Lint
run: |
poetry run black --check .
poetry run isort -c .
poetry run mypy .
poetry run flake8
- name: Test
run: |
poetry run pytest
- name: Check formatting
# Lints/tests should always run, even if other lints/tests have failed.
if: success() || failure() && steps.install-deps.outcome == 'success'
run: |
poetry run ruff format --check
- name: Lint
if: success() || failure() && steps.install-deps.outcome == 'success'
run: |
poetry run ruff check
- name: Run tests
if: success() || failure() && steps.install-deps.outcome == 'success'
run: |
poetry run pytest -vv