Fix github workflows to include sentry_sdk_extensions in tests

it's the other non-Django-app with tests that we have now
This commit is contained in:
Klaas van Schelven
2025-04-26 10:43:35 +02:00
parent ebd7d8075b
commit 4b396446b0

View File

@@ -99,8 +99,8 @@ jobs:
PYTHONWARNINGS: all
run: |
# because we're outside the project directory, the test discovery won't find our packages. We simply enumerate
# them using some shell-magic. Note that the only non-app that we still care about is 'bugsink' (project, not app)
# which we mention separately
bugsink-manage test `bugsink-manage shell -c 'from django.conf import settings; print(" ".join(settings.BUGSINK_APPS))'` bugsink -v2
# them using some shell-magic. Note that the only non-apps that we still care about are 'bugsink' (project, not
# app), and sentry_sdk_extensions, which we mention separately
bugsink-manage test `bugsink-manage shell -c 'from django.conf import settings; print(" ".join(settings.BUGSINK_APPS))'` bugsink sentry_sdk_extensions -v2
# bugsink-manage test ${GITHUB_WORKSPACE} -v2 # fails with the following, which I don't understand:
# ImportError: 'tests' module incorrectly imported from '/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages/alerts'. Expected '/home/runner/work/bugsink-private/bugsink-private/alerts'. Is this module globally installed?