-
Notifications
You must be signed in to change notification settings - Fork 30
32 lines (28 loc) · 1.06 KB
/
validate-syntax.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Validate python syntax
on: [push, pull_request]
jobs:
validate:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pycodestyle==2.6.0
- name: Validate with pycodestyle
run: |
pycodestyle
- name: Make sure there are no missing migrations
run: |
echo "SECRET_KEY='foobar'" > postgresqleu/local_settings.py
echo "DATABASES={'default': {}}" >> postgresqleu/local_settings.py
pip install Pillow pycryptodomex # Install the "wrong" version of pillow and pycryptodomex so it uses a wheel - since we won't actually call it anyway
pip install -r <(grep -Ev "Pillow|pycryptodomex" tools/devsetup/dev_requirements.txt)
python manage.py makemigrations --check --dry-run