Skip to content

Commit

Permalink
Iteration 1: Install coverage and update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
judtinzhang committed Oct 2, 2023
1 parent 29b580d commit 21031f7
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 11 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/cdkactions_build-and-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,22 @@ jobs:
run: |-
cd backend
pipenv run black --check .
# - name: Test (run in parallel)
# run: |-
# cd backend
# pipenv run coverage run --concurrency=multiprocessing manage.py test --settings=pennmobile.settings.ci --parallel
# pipenv run coverage combine
# - name: Upload Code Coverage
# run: |-
# ROOT=$(pwd)
# cd backend
# pipenv run codecov --root $ROOT --flags backend
- name: Test (run in parallel)
run: |-
cd backend
pipenv run coverage run --concurrency=multiprocessing manage.py test --settings=pennmobile.settings.ci --parallel
pipenv run coverage combine
- name: Upload Code Coverage
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: $(pwd)/backend/
env_vars: OS,PYTHON
fail_ci_if_error: true
files: ./.coverage
flags: unittests
name: codecov-umbrella
verbose: true
container:
image: python:3.9.14-buster
env:
Expand Down
2 changes: 2 additions & 0 deletions backend/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ flake8-absolute-import = "*"
rope = "*"
pytest = "*"
tblib = "*"
coverage = "*"

[packages]
beautifulsoup4 = "*"
Expand Down Expand Up @@ -42,6 +43,7 @@ celery = "*"
django-redis = "*"
redis = "*"
python-dateutil = "*"
coverage = "*"

[requires]
python_version = "3.9.14"
61 changes: 60 additions & 1 deletion backend/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 21031f7

Please sign in to comment.