From b4cd61a5cf0b8ecec0423d8a151c98ba726d27af Mon Sep 17 00:00:00 2001 From: Tanya Date: Mon, 29 Jan 2024 16:35:37 -0800 Subject: [PATCH] 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 --- .github/workflows/codecov-report-publish.yml | 0 .github/workflows/testing.yml | 19 +++++++------------ 2 files changed, 7 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/codecov-report-publish.yml diff --git a/.github/workflows/codecov-report-publish.yml b/.github/workflows/codecov-report-publish.yml new file mode 100644 index 000000000..e69de29bb diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 54e3f91b2..64b803d2b 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -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/codecov-action@v1.2.1 - 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/codecov-action@v1.2.1 + # 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()