Skip to content

chore(deps): bump black from 22.6.0 to 23.12.0 #7860

chore(deps): bump black from 22.6.0 to 23.12.0

chore(deps): bump black from 22.6.0 to 23.12.0 #7860

Workflow file for this run

name: ddl-changes
on:
pull_request:
types: [opened, synchronize, reopened, labeled, unlabeled]
jobs:
post_changes:
name: Post new DDL changes from migrations
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
name: Checkout master for diffing
with:
ref: master
fetch-depth: 200
- uses: actions/checkout@v3
name: Checkout HEAD of code that may have migration changes
with:
clean: false
fetch-depth: 200
- uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
make install-python-dependencies
- name: Run the migration script
run: |
SNUBA_SETTINGS=test_distributed python scripts/ddl-changes.py
- name: Generate SQL for migration
uses: getsentry/action-migrations@v1.0.8
env:
SNUBA_SETTINGS: test_distributed
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
migration: "./snuba/migrations/groups.py"
cmd: python scripts/ddl-changes.py
- name: Check migrations are not coupled with other changes
run: |
# Check that the migration is not coupled with other changes
# If the label skip-check-migrations is present, the check is skipped
SNUBA_SETTINGS=test_distributed python scripts/check-migrations.py --labels ${{join(github.event.pull_request.labels.*.name, '')}}