Don't crash on contracts with no sender specific message #663
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |