Bump django from 4.1.13 to 4.2.24 #612
Workflow file for this run
This file contains hidden or 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: "OCELoT" | |
| on: [push, pull_request] | |
| jobs: | |
| formatting: | |
| runs-on: ubuntu-20.04 | |
| env: | |
| OCELOT_SECRET_KEY: not-a-secret-key-but-needed-for-testing | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Python versions | |
| # On Ubuntu 20.04 python should be Python 3.8.5 | |
| run: | | |
| which python | |
| python --version | |
| - name: Install requirements | |
| run: pip install -r requirements.txt | |
| - name: Install development tools | |
| # Python tools will be installed in ~/.local/bin, which by default is not in $PATH | |
| run: | | |
| echo "$HOME/.local/bin" >> $GITHUB_PATH | |
| pip install --upgrade pip setuptools wheel | |
| pip install -r requirements-dev.txt | |
| - name: Module versions | |
| run: | | |
| mypy --version | |
| black --version | |
| pylint --version | |
| - name: Run mypy | |
| run: find . -name "*.py" -not -path "./venv*" | xargs mypy | |
| - name: Reformat | |
| run: | | |
| black -S -l 75 --check . | |
| find . -name "*.py" -not -path "./venv*" -not -path "*/migrations/*" | xargs pylint --fail-under 9 --rcfile setup.cfg | |
| find . -name "*.py" -not -path "./venv*" -not -path "*/migrations/*" | xargs reorder-python-imports --diff-only | |
| - name: Check safety | |
| run: cat requirements.txt | safety check --stdin | |
| testing: | |
| runs-on: ubuntu-20.04 | |
| env: | |
| OCELOT_SECRET_KEY: not-a-secret-key-but-needed-for-testing | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Install requirements | |
| run: pip install -r requirements.txt | |
| - name: Run unit tests | |
| run: python manage.py test -v2 |