From f2ace566c3eb20811710843c3c65afbd7b7b6c4c Mon Sep 17 00:00:00 2001 From: Jun-te Kim Date: Wed, 24 Jun 2026 07:54:07 +0000 Subject: [PATCH] ci: disable unit_tests.yml workflow (Actions minutes) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Comment out the Docker-based unit-test workflow — it was consuming too many GitHub Actions minutes. Fully commented (rather than deleted) so it can be restored by uncommenting. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/unit_tests.yml | 137 ++++++++++++++++--------------- 1 file changed, 70 insertions(+), 67 deletions(-) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 12d836d0..bd022a2a 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -1,67 +1,70 @@ -name: Run unit tests - -on: - pull_request: - branches: - - "**" - - -jobs: - test-docker: - name: Tests (Docker) - runs-on: ubuntu-latest - - services: - postgres: - image: postgres:15 - env: - POSTGRES_USER: test - POSTGRES_PASSWORD: test - POSTGRES_DB: test - ports: - - 5432:5432 - options: >- - --health-cmd pg_isready - --health-interval 10s - --health-timeout 5s - --health-retries 5 - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Build test image - run: docker build -f Dockerfile.test -t model-test . - - - name: Initialise database schema - run: | - docker run --rm \ - --network host \ - -e DB_HOST=localhost \ - -e DB_NAME=test \ - -e DB_USERNAME=test \ - -e DB_PASSWORD=test \ - -e DB_PORT=5432 \ - model-test python scripts/init_db.py - - - name: Run tests - run: | - docker run --rm \ - --network host \ - -e EPC_AUTH_TOKEN=${{ secrets.DEV_EPC_AUTH_TOKEN }} \ - -e OPEN_EPC_API_TOKEN=${{ secrets.DEV_OPEN_EPC_API_TOKEN }} \ - -e HUBSPOT_API_KEY=${{ secrets.HUBSPOT_API_KEY }} \ - -e AWS_ACCESS_KEY_ID=${{ secrets.DEV_AWS_ACCESS_KEY_ID }} \ - -e AWS_SECRET_ACCESS_KEY=${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }} \ - -e AWS_DEFAULT_REGION=${{ secrets.DEV_AWS_REGION }} \ - -e DB_HOST=localhost \ - -e DB_NAME=test \ - -e DB_USERNAME=test \ - -e DB_PASSWORD=test \ - -e DB_PORT=5432 \ - model-test pytest -vv -m 'not integration' - - # The DDD rewrite (tests/) runs in its own workflow (ddd_tests.yml): its - # SQLModel table classes map to the same physical tables as the legacy - # backend models and share the one global SQLModel.metadata, so the two - # suites cannot be imported into the same pytest process. +# Temporarily disabled — this Docker-based suite was consuming too many GitHub +# Actions minutes. Uncomment to re-enable. +# +# name: Run unit tests +# +# on: +# pull_request: +# branches: +# - "**" +# +# +# jobs: +# test-docker: +# name: Tests (Docker) +# runs-on: ubuntu-latest +# +# services: +# postgres: +# image: postgres:15 +# env: +# POSTGRES_USER: test +# POSTGRES_PASSWORD: test +# POSTGRES_DB: test +# ports: +# - 5432:5432 +# options: >- +# --health-cmd pg_isready +# --health-interval 10s +# --health-timeout 5s +# --health-retries 5 +# +# steps: +# - name: Checkout code +# uses: actions/checkout@v4 +# +# - name: Build test image +# run: docker build -f Dockerfile.test -t model-test . +# +# - name: Initialise database schema +# run: | +# docker run --rm \ +# --network host \ +# -e DB_HOST=localhost \ +# -e DB_NAME=test \ +# -e DB_USERNAME=test \ +# -e DB_PASSWORD=test \ +# -e DB_PORT=5432 \ +# model-test python scripts/init_db.py +# +# - name: Run tests +# run: | +# docker run --rm \ +# --network host \ +# -e EPC_AUTH_TOKEN=${{ secrets.DEV_EPC_AUTH_TOKEN }} \ +# -e OPEN_EPC_API_TOKEN=${{ secrets.DEV_OPEN_EPC_API_TOKEN }} \ +# -e HUBSPOT_API_KEY=${{ secrets.HUBSPOT_API_KEY }} \ +# -e AWS_ACCESS_KEY_ID=${{ secrets.DEV_AWS_ACCESS_KEY_ID }} \ +# -e AWS_SECRET_ACCESS_KEY=${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }} \ +# -e AWS_DEFAULT_REGION=${{ secrets.DEV_AWS_REGION }} \ +# -e DB_HOST=localhost \ +# -e DB_NAME=test \ +# -e DB_USERNAME=test \ +# -e DB_PASSWORD=test \ +# -e DB_PORT=5432 \ +# model-test pytest -vv -m 'not integration' +# +# # The DDD rewrite (tests/) runs in its own workflow (ddd_tests.yml): its +# # SQLModel table classes map to the same physical tables as the legacy +# # backend models and share the one global SQLModel.metadata, so the two +# # suites cannot be imported into the same pytest process.