only run tests on main and PRs

This commit is contained in:
Tobias Brunner 2025-06-23 14:22:33 +02:00
parent 0e88a8d13e
commit 25d4164bae
No known key found for this signature in database

View file

@ -2,7 +2,7 @@ name: Django Tests
on: on:
push: push:
branches: ["*"] branches: [main]
pull_request: pull_request:
jobs: jobs:
@ -31,4 +31,4 @@ jobs:
-w /app \ -w /app \
-e SECRET_KEY=dummysecretkey \ -e SECRET_KEY=dummysecretkey \
website:test \ website:test \
sh -c 'uv run --extra dev manage.py migrate --noinput && uv run --extra dev manage.py test hub.services.tests --verbosity=2' sh -c 'uv run --extra dev manage.py migrate --noinput && uv run --extra dev manage.py test hub.services.tests --verbosity=2'