From a0d90a26b7aad21146f893684bdee358e95b045f Mon Sep 17 00:00:00 2001 From: SwiftyOS Date: Thu, 2 Jan 2025 16:57:39 +0100 Subject: [PATCH] remove market from ci --- .github/dependabot.yml | 22 --- .../workflows/platform-autgpt-deploy-prod.yml | 6 - .../platform-autogpt-deploy-dev.yaml | 7 - .github/workflows/platform-market-ci.yml | 126 ------------------ 4 files changed, 161 deletions(-) delete mode 100644 .github/workflows/platform-market-ci.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 18191139f..853791e2c 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -89,28 +89,6 @@ updates: - "minor" - "patch" - # market (Poetry project) - - package-ecosystem: "pip" - directory: "autogpt_platform/market" - schedule: - interval: "weekly" - open-pull-requests-limit: 10 - target-branch: "dev" - commit-message: - prefix: "chore(market/deps)" - prefix-development: "chore(market/deps-dev)" - groups: - production-dependencies: - dependency-type: "production" - update-types: - - "minor" - - "patch" - development-dependencies: - dependency-type: "development" - update-types: - - "minor" - - "patch" - # GitHub Actions - package-ecosystem: "github-actions" diff --git a/.github/workflows/platform-autgpt-deploy-prod.yml b/.github/workflows/platform-autgpt-deploy-prod.yml index 1c0fdc387..aee6e0505 100644 --- a/.github/workflows/platform-autgpt-deploy-prod.yml +++ b/.github/workflows/platform-autgpt-deploy-prod.yml @@ -35,12 +35,6 @@ jobs: env: DATABASE_URL: ${{ secrets.BACKEND_DATABASE_URL }} - - name: Run Market Migrations - working-directory: ./autogpt_platform/market - run: | - python -m prisma migrate deploy - env: - DATABASE_URL: ${{ secrets.MARKET_DATABASE_URL }} trigger: needs: migrate diff --git a/.github/workflows/platform-autogpt-deploy-dev.yaml b/.github/workflows/platform-autogpt-deploy-dev.yaml index 632a0e7aa..7402bfbfc 100644 --- a/.github/workflows/platform-autogpt-deploy-dev.yaml +++ b/.github/workflows/platform-autogpt-deploy-dev.yaml @@ -37,13 +37,6 @@ jobs: env: DATABASE_URL: ${{ secrets.BACKEND_DATABASE_URL }} - - name: Run Market Migrations - working-directory: ./autogpt_platform/market - run: | - python -m prisma migrate deploy - env: - DATABASE_URL: ${{ secrets.MARKET_DATABASE_URL }} - trigger: needs: migrate runs-on: ubuntu-latest diff --git a/.github/workflows/platform-market-ci.yml b/.github/workflows/platform-market-ci.yml deleted file mode 100644 index c4ba56f96..000000000 --- a/.github/workflows/platform-market-ci.yml +++ /dev/null @@ -1,126 +0,0 @@ -name: AutoGPT Platform - Backend CI - -on: - push: - branches: [master, dev, ci-test*] - paths: - - ".github/workflows/platform-market-ci.yml" - - "autogpt_platform/market/**" - pull_request: - branches: [master, dev, release-*] - paths: - - ".github/workflows/platform-market-ci.yml" - - "autogpt_platform/market/**" - merge_group: - -concurrency: - group: ${{ format('backend-ci-{0}', github.head_ref && format('{0}-{1}', github.event_name, github.event.pull_request.number) || github.sha) }} - cancel-in-progress: ${{ startsWith(github.event_name, 'pull_request') }} - -defaults: - run: - shell: bash - working-directory: autogpt_platform/market - -jobs: - test: - permissions: - contents: read - timeout-minutes: 30 - strategy: - fail-fast: false - matrix: - python-version: ["3.10"] - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - fetch-depth: 0 - submodules: true - - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - - - name: Setup Supabase - uses: supabase/setup-cli@v1 - with: - version: latest - - - id: get_date - name: Get date - run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT - - - name: Set up Python dependency cache - uses: actions/cache@v4 - with: - path: ~/.cache/pypoetry - key: poetry-${{ runner.os }}-${{ hashFiles('autogpt_platform/market/poetry.lock') }} - - - name: Install Poetry (Unix) - run: | - curl -sSL https://install.python-poetry.org | python3 - - - if [ "${{ runner.os }}" = "macOS" ]; then - PATH="$HOME/.local/bin:$PATH" - echo "$HOME/.local/bin" >> $GITHUB_PATH - fi - - - name: Install Python dependencies - run: poetry install - - - name: Generate Prisma Client - run: poetry run prisma generate - - - id: supabase - name: Start Supabase - working-directory: . - run: | - supabase init - supabase start --exclude postgres-meta,realtime,storage-api,imgproxy,inbucket,studio,edge-runtime,logflare,vector,supavisor - supabase status -o env | sed 's/="/=/; s/"$//' >> $GITHUB_OUTPUT - # outputs: - # DB_URL, API_URL, GRAPHQL_URL, ANON_KEY, SERVICE_ROLE_KEY, JWT_SECRET - - - name: Run Database Migrations - run: poetry run prisma migrate dev --name updates - env: - DATABASE_URL: ${{ steps.supabase.outputs.DB_URL }} - - - id: lint - name: Run Linter - run: poetry run lint - - # Tests comment out because they do not work with prisma mock, nor have they been updated since they were created - # - name: Run pytest with coverage - # run: | - # if [[ "${{ runner.debug }}" == "1" ]]; then - # poetry run pytest -s -vv -o log_cli=true -o log_cli_level=DEBUG test - # else - # poetry run pytest -s -vv test - # fi - # if: success() || (failure() && steps.lint.outcome == 'failure') - # env: - # LOG_LEVEL: ${{ runner.debug && 'DEBUG' || 'INFO' }} - # DATABASE_URL: ${{ steps.supabase.outputs.DB_URL }} - # SUPABASE_URL: ${{ steps.supabase.outputs.API_URL }} - # SUPABASE_SERVICE_ROLE_KEY: ${{ steps.supabase.outputs.SERVICE_ROLE_KEY }} - # SUPABASE_JWT_SECRET: ${{ steps.supabase.outputs.JWT_SECRET }} - # REDIS_HOST: 'localhost' - # REDIS_PORT: '6379' - # REDIS_PASSWORD: 'testpassword' - - env: - CI: true - PLAIN_OUTPUT: True - RUN_ENV: local - PORT: 8080 - - # - name: Upload coverage reports to Codecov - # uses: codecov/codecov-action@v4 - # with: - # token: ${{ secrets.CODECOV_TOKEN }} - # flags: backend,${{ runner.os }}