Skip to content

Fix CeleryInteration when sentry is used #392

Fix CeleryInteration when sentry is used

Fix CeleryInteration when sentry is used #392

Workflow file for this run

name: Linux
# Run on PR requests. And on master itself.
on:
push:
branches:
- main
pull_request:
jobs:
test:
name: Test, Linux, Python ${{ matrix.python }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
# 2022
- python: "3.10"
pins: ""
# 2023
- python: "3.11"
pins: ""
# current
- python: "3.12"
pins: ""
services:
postgres:
image: postgres:14-alpine
env:
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
s3:
image: minio/minio:edge-cicd
env:
MINIO_DOMAIN: localhost # virtual hosted-style access
MINIO_ROOT_USER: cleanpython
MINIO_ROOT_PASSWORD: cleanpython
ports:
- 9000:9000
rabbitmq:
image: "rabbitmq:3-alpine"
env:
RABBITMQ_DEFAULT_USER: "cleanpython"
RABBITMQ_DEFAULT_PASS: "cleanpython"
RABBITMQ_DEFAULT_VHOST: "cleanpython"
ports:
- "5672:5672"
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install python dependencies
run: |
pip install --disable-pip-version-check --upgrade pip setuptools
pip install -e .[fastapi,auth,celery,fluentbit,sql,sql-sync,s3,s3-sync,api-client,amqp,nanoid,test] ${{ matrix.pins }} psycopg2-binary==2.9.*
pip list
- name: Run tests
run: pytest tests --cov
- name: Wait for postgres
run: scripts/wait-for-postgres.sh
env:
POSTGRES_URL: 'postgres:postgres@localhost:5432'
timeout-minutes: 1
- name: Run integration tests
run: pytest integration_tests
env:
POSTGRES_URL: 'postgres:postgres@localhost:5432'
S3_URL: 'http://localhost:9000'