This repository has been archived by the owner on Nov 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pulled out codecov report to new workflow
we are working to update codecov report to update on merge so contributors can successfully pr from forked repos
- Loading branch information
1 parent
5cfb106
commit b4cd61a
Showing
2 changed files
with
7 additions
and
12 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,13 +89,11 @@ jobs: | |
./scripts/${HOUSTON_APP_CONTEXT}/activate.sh | ||
- name: Run docker-compose (MWS) | ||
if: matrix.app-context == 'mws' | ||
run: | | ||
set -ex | ||
docker-compose up -d db redis elasticsearch elasticsearch2 elasticsearch3 sage sage-sync houston celery-beat celery-worker | ||
- name: Run docker-compose (Codex) | ||
if: matrix.app-context == 'codex' | ||
run: | | ||
set -ex | ||
docker-compose up -d db redis elasticsearch elasticsearch2 elasticsearch3 sage sage-sync houston celery-beat celery-worker | ||
|
@@ -125,7 +123,6 @@ jobs: | |
docker-compose exec -T -e TEST_DATABASE_URI=$TEST_DATABASE_URI houston pytest --cov=./ --cov-append --random-order-seed=1 | ||
- name: Check DB migrations (postgresql) | ||
if: matrix.app-context == 'codex' | ||
run: | | ||
set -ex | ||
docker-compose exec -T -e LOG_WIDTH=$LOG_WIDTH -e SQLALCHEMY_DATABASE_URI=$TEST_DATABASE_URI houston coverage run --append /usr/local/bin/invoke app.db.upgrade | ||
|
@@ -140,21 +137,19 @@ jobs: | |
LOG_WIDTH: 120 | ||
|
||
- name: Run other invoke tasks for coverage and errors | ||
if: matrix.app-context == 'codex' | ||
run: | | ||
docker-compose exec -T -e LOG_WIDTH=$LOG_WIDTH -e SQLALCHEMY_DATABASE_URI=$TEST_DATABASE_URI houston ./scripts/tests/run_tasks_for_coverage.sh | ||
docker-compose exec -T -e LOG_WIDTH=$LOG_WIDTH -e SQLALCHEMY_DATABASE_URI=$TEST_DATABASE_URI houston coverage xml | ||
env: | ||
LOG_WIDTH: 120 | ||
|
||
- name: Upload coverage to Codecov | ||
if: matrix.app-context == 'codex' | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: ./_coverage/coverage.xml | ||
env_vars: OS,PYTHON,TEST_DATABASE_URI | ||
fail_ci_if_error: true | ||
# - name: Upload coverage to Codecov | ||
# uses: codecov/[email protected] | ||
# with: | ||
# token: ${{ secrets.CODECOV_TOKEN }} | ||
# files: ./_coverage/coverage.xml | ||
# env_vars: OS,PYTHON,TEST_DATABASE_URI | ||
# fail_ci_if_error: true | ||
|
||
- name: Show docker-compose logs if failed | ||
if: failure() | ||
|