Skip to content

ENH: Decouple Sentry fetch and MongoDB storage + CI workflow #4

ENH: Decouple Sentry fetch and MongoDB storage + CI workflow

ENH: Decouple Sentry fetch and MongoDB storage + CI workflow #4

Workflow file for this run

name: Sentry fetch preview
on:
pull_request:
jobs:
fetch-preview:
runs-on: ubuntu-latest
env:
SENTRY_TOKEN: ${{ secrets.SENTRY_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: pip install -r requirements.txt
- name: Fetch previous day and print dataframe preview
run: |
START_TIME=$(date -u -d "yesterday 00:00:00" +%Y-%m-%dT%H:%M:%S)
END_TIME=$(date -u -d "today 00:00:00" +%Y-%m-%dT%H:%M:%S)
python src/run.py get \
--event started \
--start-date "${START_TIME}" \
--end-date "${END_TIME}" \
--no-store \
--print-dataframe