Skip to content

Bump django from 5.2.6 to 5.2.9 in the pip group across 1 directory #468

Bump django from 5.2.6 to 5.2.9 in the pip group across 1 directory

Bump django from 5.2.6 to 5.2.9 in the pip group across 1 directory #468

Workflow file for this run

name: EMBArk default tests on Ubuntu
on:
pull_request:
branches:
- main
jobs:
default-install:
if: github.repository_owner == 'e-m-b-a'
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
tool-cache: true
android: true
dotnet: true
haskell: true
large-packages: false
swap-storage: true
- name: Restore cached Docker images
id: docker-cache-restore
uses: actions/cache@v3
with:
path: docker-cache/images.tar
key: embark-docker-images-${{ hashFiles('docker-compose.yml') }}
- name: Load Docker images from cache
if: steps.docker-cache-restore.outputs.cache-hit == 'true'
run: |
docker load -i docker-cache/images.tar
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.12
- name: Set env for .venv in project
run: echo "PIPENV_VENV_IN_PROJECT=1" >> $GITHUB_ENV
- name: Install Pipenv
run: pip install --upgrade pipenv
- name: Restore Pipenv cache
id: pipenv-cache
uses: actions/cache@v3
with:
path: .venv
key: pipenv-${{ hashFiles('Pipfile.lock') }}
# Note: This has to be executed with retries, as network errors might occur (e.g. the github runner being rate limited)
- name: Install cacheable dependencies
if: steps.pipenv-cache.outputs.cache-hit != 'true'
uses: Wandalen/wretry.action@master
with:
command: pipenv install --deploy --ignore-pipfile --dev
attempt_limit: 3
# Note: Needed for e.g. secret generation
- name: Install non-cacheable dependencies
run: pip install django
# Note: Needed as otherwise sudo might use a different python version (new tty -> fresh PATH variable)
- name: Point sudo python/pip to installed version
run: |
sudo ln -sf $(which python) /usr/local/bin/python
sudo ln -sf $(which python) /usr/local/bin/python3
sudo ln -sf $(which pip) /usr/local/bin/pip
sudo ln -sf $(which pipenv) /usr/local/bin/pipenv
- name: EMBArk default install
run: sudo ./installer.sh -sF
- name: Save Docker images to cache
if: steps.docker-cache-restore.outputs.cache-hit != 'true'
run: |
images=$(grep 'image:' docker-compose.yml | awk '{ print $2 }')
mkdir -p docker-cache
docker save $images -o docker-cache/images.tar
- name: Run ./dev-tools/test.sh
uses: Wandalen/wretry.action@master
with:
command: sudo ./dev-tools/test.sh
attempt_limit: 3