Skip to content

chore(deps): update dependency flake8 to v6.1.0 #1221

chore(deps): update dependency flake8 to v6.1.0

chore(deps): update dependency flake8 to v6.1.0 #1221

Workflow file for this run

name: Django CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Cache node modules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Cache pip packages
uses: actions/cache@v3
env:
cache-name: cache-pip-packages
with:
path: ~/.cache/pip
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/requirements/dev.txt') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install Dependencies
run: |
npm install
npm run build
pip install -r requirements/dev.txt
- name: Run Tests
run: |
python manage.py collectstatic > /dev/null
isort --diff -c apps tempelhof
python manage.py makemigrations --dry-run --check --noinput
flake8 apps tempelhof --exclude migrations,settings
npm run lint
- name: Deploy
if: github.ref == 'refs/heads/main'
env:
TRAVIS_SSH_SECRET: ${{ secrets.DEPLOY }}
run: |
./scripts/deploy.sh