Skip to content

chore(deps): update dependency django-cors-headers to v4.4.0 #1042

chore(deps): update dependency django-cors-headers to v4.4.0

chore(deps): update dependency django-cors-headers to v4.4.0 #1042

Workflow file for this run

name: Django CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-22.04
services:
postgres:
image: postgis/postgis:14-3.4
env:
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Setup Postgres
env:
PGPASSWORD: postgres
PGHOSTADDR: 127.0.0.1
run: |
psql -c 'create database django_zbp;' -U postgres
psql -c 'create database django_test;' -U postgres
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '14.x'
- name: Cache node modules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Cache pip packages
uses: actions/cache@v3
env:
cache-name: cache-pip-packages
with:
path: ~/.cache/pip
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/requirements/dev.txt') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install Dependencies
run: |
sudo apt update
sudo apt install -y gdal-bin
pip install -r requirements.txt
pip install -r requirements-dev.txt
npm install --no-save
npm run build
- name: Run Tests
env:
PGPASSWORD: postgres
PGHOSTADDR: 127.0.0.1
DJANGO_SETTINGS_MODULE: django_zbp.settings.travis
run: |
python3 manage.py makemigrations --check --noinput
python3 manage.py migrate
python3 manage.py loaddata django_zbp/fixtures/*-dev.json
python3 manage.py load_bezirke
python3 manage.py load_ortsteile
python3 manage.py load_bplan --fromFixtures