build container for testing
Some checks failed
Django Tests / test (push) Failing after 12s

This commit is contained in:
Tobias Brunner 2025-06-20 14:50:34 +02:00
parent 5888e281ea
commit 3a305996ed
No known key found for this signature in database

View file

@ -7,16 +7,25 @@ on:
jobs: jobs:
test: test:
needs: build
runs-on: ubuntu-latest runs-on: ubuntu-latest
container:
image: ${{ vars.CONTAINER_REGISTRY }}/${{ vars.CONTAINER_IMAGE_NAME }}:latest
options: --entrypoint ""
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Run Django tests - 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
tags: website:test
- name: Run Django tests in container
run: | run: |
python -m hub migrate --noinput docker run --rm \
python -m hub test --verbosity=2 -v $(pwd):/app \
-w /app \
website:test \
sh -c 'python -m hub migrate --noinput && python -m hub test --verbosity=2'