diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index baf863e0f..d52c0bd94 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,4 +26,5 @@ jobs: - name: Run tests run: | make docker_test + diff --git a/Makefile b/Makefile index 0a6f7a116..00b661ca2 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ docker_host_dev: python_tests: python -m unittest discover tests docker_test: - docker-compose -f docker-compose.test.yml run --build --remove-orphans + docker-compose -f docker-compose.test.yml up --build --remove-orphans --abort-on-container-exit mentorship_system_test docker_dev: docker-compose up --build --remove-orphans generate_cov: @@ -13,7 +13,8 @@ generate_cov: pip install pytest-cov pytest --cov-config=.coveragerc pytest --cov=./ --cov-report=xml - bash < curl -s https://codecov.io/bash + apt install curl + curl -s https://codecov.io/bash diff --git a/docker-compose.test.yml b/docker-compose.test.yml index 75c939572..9ddc13b39 100644 --- a/docker-compose.test.yml +++ b/docker-compose.test.yml @@ -11,11 +11,10 @@ services: mentorship_system_test: container_name: mentorship_system_test - build: . + build: . depends_on: - test_postgres environment: FLASK_ENVIRONMENT_CONFIG: test command: - - generate_cov - + - generate_cov \ No newline at end of file