Skip to content

Commit

Permalink
will you be my mom
Browse files Browse the repository at this point in the history
  • Loading branch information
Erutis committed Sep 5, 2024
1 parent aeb9e71 commit ca9d4a7
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions .github/workflows/db-changes-var1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ jobs:
env:
PGPASSWORD: postgres

- name: Checkout Branch
- name: Checkout Main Branch
uses: actions/checkout@v4
with:
fetch-depth: 0
# ref: 'main'
ref: 'main'

- name: Set up Python
id: setup-python
Expand Down Expand Up @@ -94,34 +94,34 @@ jobs:
DATABASE_URL: ${{ env.DATABASE_URL }}
run: |
alembic -c alembic.ini upgrade head
git status
# - name: Checkout New Branch
# uses: actions/checkout@v4
# with:
# fetch-depth: 0

git add .
git stash
- name: Checkout New Branch
uses: actions/checkout@v4
with:
fetch-depth: 0

# - name: Run alembic script autogeneration
# id: run-alembic-script-autogen-round-2
# env:
# DATABASE_URL: ${{ env.DATABASE_URL }}
# run: |
# alembic -c alembic.ini revision --autogenerate -m "test_new_changes_002"
- name: Run alembic script autogeneration
id: run-alembic-script-autogen-round-2
env:
DATABASE_URL: ${{ env.DATABASE_URL }}
run: |
git stash pop
alembic -c alembic.ini revision --autogenerate -m "test_new_changes_002"
# - name: Upgrade alembic head with new revision
# id: run-alembic-upgrade-new
# env:
# DATABASE_URL: ${{ env.DATABASE_URL }}
# run: |
# alembic -c alembic.ini upgrade head
- name: Upgrade alembic head with new revision
id: run-alembic-upgrade-new
env:
DATABASE_URL: ${{ env.DATABASE_URL }}
run: |
alembic -c alembic.ini upgrade head
# - name: Test DB is set up correctly
# id: test-db-set-up
# run: |
# set -e # catch errors
# python migrations/test_migration.py
- name: Test DB is set up correctly
id: test-db-set-up
run: |
set -e # catch errors
python migrations/test_migration.py
# - name: Checkout new branch
# id: checkout-new-branch
Expand Down

0 comments on commit ca9d4a7

Please sign in to comment.