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.
Merge pull request #967 from WildMeOrg/ccov-changes
Ccov changes
- Loading branch information
Showing
1 changed file
with
1 addition
and
5 deletions.
There are no files selected for viewing
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,15 +137,14 @@ 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' | ||
if: github.event.pull_request.merged == true | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|