Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
epicadk committed Apr 15, 2021
1 parent 0cd24e4 commit 8f71e4f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ jobs:
- name: Run tests
run: |
make docker_test
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@ 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:
pip install pytest
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



Expand Down
5 changes: 2 additions & 3 deletions docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8f71e4f

Please sign in to comment.