website/.forgejo/workflows/test.yaml
Tobias Brunner b9e5da7111
Some checks failed
Django Tests / test (push) Failing after 1m3s
use uv to run tests
2025-06-20 15:00:25 +02:00

34 lines
No EOL
795 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 \
-v $(pwd):/app \
-w /app \
website:test \
sh -c 'uv run --extra dev manage.py migrate --noinput && uv run --extra dev manage.py test --verbosity=2'