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 44993e7 commit c7258d6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,4 @@ jobs:
run: |
make docker_test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: ./cov/coverage.xml
name: codecov-umbrella
fail_ci_if_error: true
7 changes: 4 additions & 3 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 up --build --remove-orphans --no-color --abort-on-container-exit mentorship_system_test
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 --cov-report=xml

pytest --cov=./ --cov-report=xml
apt install curl
curl -s https://codecov.io/bash



Expand Down
5 changes: 1 addition & 4 deletions docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,9 @@ services:
mentorship_system_test:
container_name: mentorship_system_test
build: .
volumes:
- /cov:/cov
depends_on:
- test_postgres
environment:
FLASK_ENVIRONMENT_CONFIG: test
command:
- generate_cov

- generate_cov

0 comments on commit c7258d6

Please sign in to comment.