Skip to content

add sentry

add sentry #224

Workflow file for this run

name: Quality check
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:12-alpine
env:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: flagging-test
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
redis:
image: redis:6
ports:
- 6379:6379
steps:
- uses: actions/checkout@v2
- name: Python Setup
uses: actions/setup-python@v2
with:
python-version: "3.12"
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install libpq-dev
pip install --upgrade uv
uv pip install --system -r requirements.txt
- name: Run pre-commit
run: pre-commit run -a
- name: Run Celery worker
run: flask celery worker &
env:
FLASK_ENV: testing
- name: Run tests
run: python -m pytest -vv -m "not auth_required and not check_grammar" ./tests
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres