Skip to content

Commit

Permalink
test: fix docker-compose and perf ci
Browse files Browse the repository at this point in the history
  • Loading branch information
leynier committed Dec 3, 2021
1 parent e4a1405 commit 5360967
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ jobs:
os: [ubuntu-latest]
python-version: [3.7, 3.8, 3.9, '3.10']
runs-on: ${{ matrix.os }}
# TODO(fedden): We need to discuss these steps: We could just use a test-supabase instance or we could update the docker image and use that for the tests.
steps:
- name: Clone Repository
uses: actions/checkout@v2
Expand All @@ -22,12 +21,8 @@ jobs:
uses: abatilo/actions-poetry@v2.1.4
with:
poetry-version: 1.1.11
- name: Build Docker image
run: make run_infra
- name: Sleep for 5 seconds
run: sleep 5
- name: Run Tests
run: make tests
run: make run_tests
- name: Upload Coverage
uses: codecov/codecov-action@v1

Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,13 @@ clean_infra:
docker-compose down &&\
docker system prune -a --volumes -f

run_tests: run_infra tests
run_tests: run_infra sleep tests

build_sync:
poetry run unasync gotrue tests

build_run_tests: build_sync run_tests
echo "Done"

sleep:
sleep 10
3 changes: 2 additions & 1 deletion infra/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,10 @@ services:
- '9000:9000' # web interface
- '1100:1100' # POP3
db:
image: supabase/postgres
image: supabase/postgres:latest
ports:
- '5432:5432'
command: postgres -c config_file=/etc/postgresql/postgresql.conf
volumes:
- ./db:/docker-entrypoint-initdb.d/
environment:
Expand Down

0 comments on commit 5360967

Please sign in to comment.