Skip to content

Commit

Permalink
WIP: Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanjohnson-lab committed Feb 21, 2024
1 parent bbf18ca commit 0b4dd11
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/backend-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ jobs:
os: ["ubuntu-latest"]
version: ["3.10"]
runs-on: ${{matrix.os}}
defaults:
run:
working-directory: job_monitoring_app
shell: bash
# Service containers to run with `runner-job`
services:
# Label used to access the service container
Expand Down Expand Up @@ -54,23 +50,27 @@ jobs:
echo "pwd: $(pwd)"
echo "export PYTHONPATH=$PYTHONPATH:$(pwd)" >> $GITHUB_ENV
export PYTHONPATH=$PYTHONPATH:$(pwd)
export PYTHONPATH=$PYTHONPATH:$(pwd)/job_monitoring_app/
export PYTHONPATH=$PYTHONPATH:$(pwd)/job_monitoring_app/backend
export PYTHONPATH=$PYTHONPATH:$(pwd)/job_monitoring_app/backend/app
echo "After export:"
echo "PYTHONPATH: $PYTHONPATH"
- name: Install python dependencies
run: |
pip install -q -r backend/requirements.txt
pip install -q -r job_monitoring_app/backend/requirements.txt
- name: Database setup and build coverage file
run: |
touch backend/.env.test
touch job_monitoring_app/backend/.env.test
echo POSTGRES_USER="$POSTGRES_USER" >> .env.test
echo POSTGRES_SERVER="$POSTGRES_SERVER" >> .env.test
echo POSTGRES_PORT="$POSTGRES_PORT" >> .env.test
echo POSTGRES_DB="$POSTGRES_DB" >> .env.test
echo POSTGRES_PASSWORD="$POSTGRES_PASSWORD" >> .env.test
echo APP_ENV="$APP_ENV">> .env.test
python backend/tasks.py db:test:reset
python backend/tasks.py db:test:upgrade
python job_monitoring_app/backend/tasks.py db:test:reset
python job_monitoring_app/backend/tasks.py db:test:upgrade
alembic upgrade head
Expand Down

0 comments on commit 0b4dd11

Please sign in to comment.