1
Fork 0

Add setup helper script

This commit is contained in:
Jake Howard 2020-04-12 15:35:36 +01:00
parent bf025dc31e
commit f81448bfd2
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 18 additions and 2 deletions

View file

@ -17,5 +17,5 @@ jobs:
with: with:
path: ~/.cache/pip path: ~/.cache/pip
key: pip-${{ hashFiles('requirements.txt') }}-${{ hashFiles('dev-requirements.txt') }} key: pip-${{ hashFiles('requirements.txt') }}-${{ hashFiles('dev-requirements.txt') }}
- name: Install dependencies - name: Install
run: pip install -r dev-requirements.txt run: ./scripts/setup.sh

16
scripts/setup.sh Executable file
View file

@ -0,0 +1,16 @@
#!/usr/bin/env bash
export PATH=env/bin:${PATH}
set -ex
python3 -m venv env
pip install -r requirements.txt
if [ "$DEBUG" != "false" ];
then
pip install -r dev-requirements.txt
fi
./manage.py collectstatic --noinput