Bump django from 4.2.14 to 5.1.3 in /app #1145
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# action.yml | |
name: "Run e2e-tests" | |
on: | |
push: | |
branches: | |
- develop | |
pull_request: | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
################################################### | |
# CHECKOUT | |
################################################### | |
- name: Checkout backend | |
uses: actions/checkout@v4 | |
################################################### | |
# BACKEND | |
################################################### | |
- run: docker network create zaken_network | |
- run: docker network create top_and_zaak_backend_bridge | |
- run: docker compose -f docker-compose.local.yml up --detach | |
- run: sleep 30 | |
- run: bash bin/setup_credentials.sh | |
- run: ./e2e-tests/fix_models.sh | |
################################################### | |
# TEST | |
################################################### | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Test version | |
run: python --version | |
- name: Install requirements | |
run: python3 -m pip install -r requirements.txt | |
working-directory: e2e-tests | |
- name: Run tests | |
run: API_HOST=http://127.0.0.1:8080/api/v1 python3 -m unittest | |
working-directory: e2e-tests | |
################################################### | |
# On failure | |
################################################### | |
- if: ${{ failure() }} | |
name: "ON FAILURE: Which containers were running while failing?" | |
run: docker ps -a | |
- if: ${{ failure() }} | |
name: "ON FAILURE: Backend logs" | |
run: docker logs zaken-backend_zaak-gateway_1 | |
- if: ${{ failure() }} | |
name: "ON FAILURE: Database logs" | |
run: docker logs zaken-backend_database_1 |