Skip to content

Allow fractional tax rates #673

Allow fractional tax rates

Allow fractional tax rates #673

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