Skip to content

Commit

Permalink
Merge pull request #228 from EHDEN/fix/github_actions
Browse files Browse the repository at this point in the history
Fix/GitHub actions
  • Loading branch information
joaorafaelalmeida authored Apr 11, 2022
2 parents 1cbaad0 + 8e2831e commit 22d4d5f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/code_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,5 @@ jobs:
pip install -r requirements-dev/requirements-prospector.txt -r dashboard_viewer/requirements.txt
- name: prospector
run: |
prospector dashboard_viewer
export $(grep -v '^#' tests/.env | xargs -d '\n')
DJANGO_SETTINGS_MODULE=dashboard_viewer.settings prospector dashboard_viewer
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ jobs:
export $(grep -v '^#' tests/.env | xargs -d '\n')
cd dashboard_viewer
python manage.py test --exclude-tag third-party-app
SINGLE_APPLICATION_MODE=n MAIN_APPLICATION_HOST=mainapp.host.com python manage.py test --tag third-party-app
#SINGLE_APPLICATION_MODE=n MAIN_APPLICATION_HOST=mainapp.host.com python manage.py test --tag third-party-app
2 changes: 1 addition & 1 deletion dashboard_viewer/dashboard_viewer/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
path("martor/", include("martor.urls")),
path("uploader/", include("uploader.urls")),
re_path(
fr'^{re.escape(settings.MEDIA_URL.lstrip("/"))}(?P<path>.*)$',
rf'^{re.escape(settings.MEDIA_URL.lstrip("/"))}(?P<path>.*)$',
serve,
kwargs={"document_root": settings.MEDIA_ROOT},
)
Expand Down
6 changes: 5 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ commands = isort --check-only --diff dashboard_viewer
deps =
-r{toxinidir}/requirements-dev/requirements-prospector.txt
-r{toxinidir}/dashboard_viewer/requirements.txt
setenv =
DJANGO_SETTINGS_MODULE=dashboard_viewer.settings
commands =
prospector dashboard_viewer
bash -c "export $(grep -v '^#' tests/.env | xargs -d '\n') && prospector dashboard_viewer"
whitelist_externals =
bash

# tests
[testenv:tests]
Expand Down

0 comments on commit 22d4d5f

Please sign in to comment.