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

Commit

Permalink
Merge pull request #967 from WildMeOrg/ccov-changes
Browse files Browse the repository at this point in the history
Ccov changes
  • Loading branch information
TanyaStere42 authored Feb 7, 2024
2 parents 9290ef7 + 826d7fe commit 2a656c6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 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,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 }}
Expand Down

0 comments on commit 2a656c6

Please sign in to comment.