Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
pulled out codecov report to new workflow
Browse files Browse the repository at this point in the history
we are working to update codecov report to update on merge so
contributors can successfully pr from forked repos
  • Loading branch information
TanyaStere42 committed Jan 30, 2024
1 parent 5cfb106 commit b4cd61a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
Empty file.
19 changes: 7 additions & 12 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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()
Expand Down

0 comments on commit b4cd61a

Please sign in to comment.