AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
ci(server): add sqlite processing (#7586)
Nicholas Tindle3e384c97718b
diff --git a/.github/workflows/autogpt-server-ci.yml b/.github/workflows/autogpt-server-ci.ymlindex 96cc2d430f..a996ccc0c4 100644--- a/.github/workflows/autogpt-server-ci.yml+++ b/.github/workflows/autogpt-server-ci.yml@@ -31,10 +31,12 @@ jobs:matrix:python-version: ["3.10"]platform-os: [ubuntu, macos, macos-arm64, windows]+ db-platform: [postgres, sqlite]runs-on: ${{ matrix.platform-os != 'macos-arm64' && format('{0}-latest', matrix.platform-os) || 'macos-14' }}steps:- name: Setup PostgreSQL+ if: matrix.db-platform == 'postgres'uses: ikalnytskyi/action-setup-postgres@v6with:username: ${{ secrets.DB_USER }}@@ -114,14 +116,24 @@ jobs:- name: Install Python dependenciesrun: poetry install- - name: Generate Prisma Client+ - name: Generate Prisma Client (Postgres)+ if: matrix.db-platform == 'postgres'run: poetry run prisma generate --schema postgres/schema.prisma- - name: Run Database Migrations+ - name: Run Database Migrations (Postgres)+ if: matrix.db-platform == 'postgres'run: poetry run prisma migrate dev --schema postgres/schema.prisma --name updatesenv:CONNECTION_STR: ${{ steps.postgres.outputs.connection-uri }}+ - name: Generate Prisma Client (SQLite)+ if: matrix.db-platform == 'sqlite'+ run: poetry run prisma generate++ - name: Run Database Migrations (SQLite)+ if: matrix.db-platform == 'sqlite'+ run: poetry run prisma migrate dev --name updates+- name: Run Linterrun: poetry run lint