Skip to content

Commit

Permalink
Simplify code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
rosswhitfield committed Jun 21, 2024
1 parent edbeba5 commit 925d6f6
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 107 deletions.
1 change: 1 addition & 0 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
LIVE_PLOT_SECRET_KEY: "1234_live_data_server"
DJANGO_SUPERUSER_USERNAME: livedatauser
DJANGO_SUPERUSER_PASSWORD: livedatapass
COVERAGE_RUN: coverage run -m
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
Expand Down
18 changes: 0 additions & 18 deletions Dockerfile.coverage

This file was deleted.

61 changes: 0 additions & 61 deletions config/docker-compose.coverage.yml

This file was deleted.

1 change: 1 addition & 0 deletions config/docker-compose.envlocal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ services:
DATABASE_HOST: ${DATABASE_HOST}
DATABASE_PORT: ${DATABASE_PORT}
LIVE_PLOT_SECRET_KEY: ${LIVE_PLOT_SECRET_KEY}
COVERAGE_RUN: ${COVERAGE_RUN}
command: /usr/bin/docker-entrypoint.sh
volumes:
- web-static:/var/www/livedata/static
Expand Down
27 changes: 0 additions & 27 deletions docker-entrypoint-coverage.sh

This file was deleted.

2 changes: 1 addition & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ python manage.py createcachetable webcache
python manage.py ensure_adminuser --username=${DJANGO_SUPERUSER_USERNAME} --email='[email protected]' --password=${DJANGO_SUPERUSER_PASSWORD}

# run application
gunicorn live_data_server.wsgi:application -w 2 -b :8000 --reload
${COVERAGE_RUN} gunicorn live_data_server.wsgi:application -w 2 -b :8000 --reload
4 changes: 4 additions & 0 deletions src/live_data_server/.coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[run]
source=live_data_server,plots
parallel=True
relative_files=True

0 comments on commit 925d6f6

Please sign in to comment.