Skip to content

Let's try with installing all required debian packages first #3

Let's try with installing all required debian packages first

Let's try with installing all required debian packages first #3

name: Check that migrations are up to date
on: [push, pull_request]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
apt-get -y install python3 python3-psycopg2 python3-yaml python3-virtualenv python3-tidylib \
python3-dateutil python3-markdown python3-pycurl python3-pylibmc python3-tz \
pginfra-wrap-uwsgi uwsgi-plugin-python3 python3-libsass pginfra-wrap-virtualenv \
python3-requests python3-pycryptodome python3-sqlparse python3-qrcode python3-asgiref
pip install "Django>=4.2,<4.3" asgiref typing_exensions
- name: Install temporary dummy configuration
run: |
cat <<EOF > pgweb/settings_local.py
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.dummy',
}
}
EOF
- name: Check django migrations
run: |
python3 ./manage.py makemigrations --check