Skip to content

Commit

Permalink
Merge pull request #927 from hackforla/more-clean-up
Browse files Browse the repository at this point in the history
More clean up
  • Loading branch information
mattyweb authored Feb 3, 2021
2 parents 41d9ad1 + fb077dc commit d97eff9
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 14 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build_test_backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,19 @@ jobs:
run: |
cp .env.example .env
docker-compose up --no-start api
- name: Seed database and run API
- name: Run API (w/docker debugging)
run: |
docker-compose up -d api
- name: Run unit tests
run: docker-compose run api pytest
docker ps -a
docker network inspect 311_data_default
nc -zv localhost 5432
docker-compose logs db
docker-compose logs api
- name: Lint API
run: docker-compose run api flake8
- name: Seed the test database
run: docker-compose run -e TESTING=True api alembic upgrade head
- name: Run unit tests
run: docker-compose run api pytest
# - name: Run Postman tests
# run: chmod +x postman/test.sh && postman/test.sh
1 change: 1 addition & 0 deletions server/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ DB_USER=311_user
DB_PASS=311_pass
DB_NAME=311_db_test
DB_ECHO=False
SHOW_ENV=False

############################ PREFECT CONFIG ##############################

Expand Down
Binary file modified server/api/.coverage
Binary file not shown.
8 changes: 0 additions & 8 deletions server/api/start_api.sh

This file was deleted.

3 changes: 0 additions & 3 deletions server/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ services:
- target: ${APP_PORT}
published: ${API_HOST_PORT}
command: gunicorn lacity_data_api.asgi:app -w 4 -k uvicorn.workers.UvicornWorker --log-level info -b 0.0.0.0:5000
# volumes:
# - ./api/:/home/api
depends_on:
- db
- redis
Expand All @@ -50,7 +48,6 @@ services:
PREFECT__API_URL: ${APP_PROTOCOL}://${APP_HOST}:${APP_PORT}
depends_on:
- db
# entrypoint: python flow.py

volumes:
backend_data:

0 comments on commit d97eff9

Please sign in to comment.