website/.forgejo/workflows/test.yaml
Tobias Brunner 4b515702e3
Some checks failed
Build and Deploy / deploy (push) Blocked by required conditions
Build and Deploy / build (push) Successful in 38s
Django Tests / test (push) Has been cancelled
specify which tests to run
2025-06-20 15:10:43 +02:00

34 lines
No EOL
828 B
YAML

name: Django Tests
on:
push:
branches: ["*"]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
container: catthehacker/ubuntu:act-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Docker image (local only)
uses: docker/build-push-action@v5
with:
context: .
push: false
load: true
tags: website:test
- name: Run Django tests in container
run: |
docker run --rm \
-w /app \
-e SECRET_KEY=dummysecretkey \
website:test \
sh -c 'uv run --extra dev manage.py migrate --noinput && uv run --extra dev manage.py test hub.services.tests --verbosity=2'