Team Ai
Apppublic

Underground-Digital/Workflow-Engine

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
db-migration-test.yml63 linesDownload Raw Back to workflows
1name: DB Migration Test2 3on:4  pull_request:5    branches:6      - main7    paths:8      - api/migrations/**9 10concurrency:11  group: db-migration-test-${{ github.ref }}12  cancel-in-progress: true13 14jobs:15  db-migration-test:16    runs-on: ubuntu-latest17    strategy:18      matrix:19        python-version:20          - "3.10"21 22    steps:23      - name: Checkout code24        uses: actions/checkout@v425 26      - name: Set up Python ${{ matrix.python-version }}27        uses: actions/setup-python@v528        with:29          python-version: ${{ matrix.python-version }}30          cache-dependency-path: |31            api/pyproject.toml32            api/poetry.lock33 34      - name: Install Poetry35        uses: abatilo/actions-poetry@v336 37      - name: Install dependencies38        run: poetry install -C api39 40      - name: Prepare middleware env41        run: |42          cd docker43          cp middleware.env.example middleware.env44 45      - name: Set up Middlewares46        uses: hoverkraft-tech/compose-action@v2.0.247        with:48          compose-file: |49            docker/docker-compose.middleware.yaml50          services: |51            db52            redis53 54      - name: Prepare configs55        run: |56          cd api57          cp .env.example .env58 59      - name: Run DB Migration60        run: |61          cd api62          poetry run python -m flask upgrade-db63