Skip to content

Commit

Permalink
Move github actions environment vars to env block
Browse files Browse the repository at this point in the history
  • Loading branch information
raffomania committed Dec 5, 2023
1 parent 34e8f00 commit e0331f4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/backend_check_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
jobs:
check-schema:
runs-on: ubuntu-latest
env:
API_PRODUCTION_WORKERS: 0
RAY_ENABLED: False
COMPOSE_PROFILES: ""
steps:
- uses: actions/checkout@v3
- name: Start Docker Containers
Expand All @@ -22,8 +26,6 @@ jobs:
chmod -R a+rwx backend_repo/ models_cache/ spacy_models/
python monkey_patch_docker_compose_for_backend_tests.py --disable_ray
export GID=$(id -g)
export API_PRODUCTION_WORKERS=0
export RAY_CONFIG="./config_test_no_gpu.yaml"
docker compose -f compose-test.yml up -d --quiet-pull postgres
echo Waiting for containers to start...
sleep 10
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/backend_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ jobs:
echo "Environment: $ENVIRONMENT"
run-unit-tests:
runs-on: ubuntu-latest
environment:
API_PRODUCTION_WORKERS: 0
# disable backend and frontend
COMPOSE_PROFILES: ""
RAY_ENABLED: False
POSTRES_DB: dwts-test
steps:
- name: Set Swap Space to 10GB
uses: pierotofy/set-swap-space@master
Expand All @@ -64,11 +70,6 @@ jobs:
chmod -R a+rwx backend_repo/ models_cache/ spacy_models/
python monkey_patch_docker_compose_for_backend_tests.py --disable_ray
export GID=$(id -g)
export API_PRODUCTION_WORKERS=0
# disable backend and frontend
export COMPOSE_PROFILES=
export RAY_ENABLED=False
export POSTRES_DB=dwts-test
docker compose -f compose-test.yml up -d --quiet-pull
echo Waiting for containers to start...
sleep 30
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/update-openapi-spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ on:
jobs:
update-openapi-spec:
runs-on: ubuntu-latest
env:
API_PRODUCTION_WORKERS: 0
RAY_ENABLED: False
API_EXPOSED: 5500
steps:
- uses: actions/checkout@v3
- name: Checkout PR
Expand All @@ -27,9 +31,6 @@ jobs:
chmod -R a+rwx backend_repo/ models_cache/ spacy_models/
python monkey_patch_docker_compose_for_backend_tests.py --disable_ray
export GID=$(id -g)
export API_PRODUCTION_WORKERS=0
export RAY_ENABLED=False
export API_EXPOSED=5500
docker compose -f compose-test.yml up -d --quiet-pull
echo Waiting for containers to start...
- name: Setup node
Expand Down

0 comments on commit e0331f4

Please sign in to comment.