mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
ci: disable unit_tests.yml workflow (Actions minutes)
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) <noreply@anthropic.com>
This commit is contained in:
parent
4fe59b8e78
commit
f2ace566c3
1 changed files with 70 additions and 67 deletions
137
.github/workflows/unit_tests.yml
vendored
137
.github/workflows/unit_tests.yml
vendored
|
|
@ -1,67 +1,70 @@
|
||||||
name: Run unit tests
|
# Temporarily disabled — this Docker-based suite was consuming too many GitHub
|
||||||
|
# Actions minutes. Uncomment to re-enable.
|
||||||
on:
|
#
|
||||||
pull_request:
|
# name: Run unit tests
|
||||||
branches:
|
#
|
||||||
- "**"
|
# on:
|
||||||
|
# pull_request:
|
||||||
|
# branches:
|
||||||
jobs:
|
# - "**"
|
||||||
test-docker:
|
#
|
||||||
name: Tests (Docker)
|
#
|
||||||
runs-on: ubuntu-latest
|
# jobs:
|
||||||
|
# test-docker:
|
||||||
services:
|
# name: Tests (Docker)
|
||||||
postgres:
|
# runs-on: ubuntu-latest
|
||||||
image: postgres:15
|
#
|
||||||
env:
|
# services:
|
||||||
POSTGRES_USER: test
|
# postgres:
|
||||||
POSTGRES_PASSWORD: test
|
# image: postgres:15
|
||||||
POSTGRES_DB: test
|
# env:
|
||||||
ports:
|
# POSTGRES_USER: test
|
||||||
- 5432:5432
|
# POSTGRES_PASSWORD: test
|
||||||
options: >-
|
# POSTGRES_DB: test
|
||||||
--health-cmd pg_isready
|
# ports:
|
||||||
--health-interval 10s
|
# - 5432:5432
|
||||||
--health-timeout 5s
|
# options: >-
|
||||||
--health-retries 5
|
# --health-cmd pg_isready
|
||||||
|
# --health-interval 10s
|
||||||
steps:
|
# --health-timeout 5s
|
||||||
- name: Checkout code
|
# --health-retries 5
|
||||||
uses: actions/checkout@v4
|
#
|
||||||
|
# steps:
|
||||||
- name: Build test image
|
# - name: Checkout code
|
||||||
run: docker build -f Dockerfile.test -t model-test .
|
# uses: actions/checkout@v4
|
||||||
|
#
|
||||||
- name: Initialise database schema
|
# - name: Build test image
|
||||||
run: |
|
# run: docker build -f Dockerfile.test -t model-test .
|
||||||
docker run --rm \
|
#
|
||||||
--network host \
|
# - name: Initialise database schema
|
||||||
-e DB_HOST=localhost \
|
# run: |
|
||||||
-e DB_NAME=test \
|
# docker run --rm \
|
||||||
-e DB_USERNAME=test \
|
# --network host \
|
||||||
-e DB_PASSWORD=test \
|
# -e DB_HOST=localhost \
|
||||||
-e DB_PORT=5432 \
|
# -e DB_NAME=test \
|
||||||
model-test python scripts/init_db.py
|
# -e DB_USERNAME=test \
|
||||||
|
# -e DB_PASSWORD=test \
|
||||||
- name: Run tests
|
# -e DB_PORT=5432 \
|
||||||
run: |
|
# model-test python scripts/init_db.py
|
||||||
docker run --rm \
|
#
|
||||||
--network host \
|
# - name: Run tests
|
||||||
-e EPC_AUTH_TOKEN=${{ secrets.DEV_EPC_AUTH_TOKEN }} \
|
# run: |
|
||||||
-e OPEN_EPC_API_TOKEN=${{ secrets.DEV_OPEN_EPC_API_TOKEN }} \
|
# docker run --rm \
|
||||||
-e HUBSPOT_API_KEY=${{ secrets.HUBSPOT_API_KEY }} \
|
# --network host \
|
||||||
-e AWS_ACCESS_KEY_ID=${{ secrets.DEV_AWS_ACCESS_KEY_ID }} \
|
# -e EPC_AUTH_TOKEN=${{ secrets.DEV_EPC_AUTH_TOKEN }} \
|
||||||
-e AWS_SECRET_ACCESS_KEY=${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }} \
|
# -e OPEN_EPC_API_TOKEN=${{ secrets.DEV_OPEN_EPC_API_TOKEN }} \
|
||||||
-e AWS_DEFAULT_REGION=${{ secrets.DEV_AWS_REGION }} \
|
# -e HUBSPOT_API_KEY=${{ secrets.HUBSPOT_API_KEY }} \
|
||||||
-e DB_HOST=localhost \
|
# -e AWS_ACCESS_KEY_ID=${{ secrets.DEV_AWS_ACCESS_KEY_ID }} \
|
||||||
-e DB_NAME=test \
|
# -e AWS_SECRET_ACCESS_KEY=${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }} \
|
||||||
-e DB_USERNAME=test \
|
# -e AWS_DEFAULT_REGION=${{ secrets.DEV_AWS_REGION }} \
|
||||||
-e DB_PASSWORD=test \
|
# -e DB_HOST=localhost \
|
||||||
-e DB_PORT=5432 \
|
# -e DB_NAME=test \
|
||||||
model-test pytest -vv -m 'not integration'
|
# -e DB_USERNAME=test \
|
||||||
|
# -e DB_PASSWORD=test \
|
||||||
# The DDD rewrite (tests/) runs in its own workflow (ddd_tests.yml): its
|
# -e DB_PORT=5432 \
|
||||||
# SQLModel table classes map to the same physical tables as the legacy
|
# model-test pytest -vv -m 'not integration'
|
||||||
# backend models and share the one global SQLModel.metadata, so the two
|
#
|
||||||
# suites cannot be imported into the same pytest process.
|
# # 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.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue