Skip to content

Update the backend libraries and dockerization #329

Update the backend libraries and dockerization

Update the backend libraries and dockerization #329

Workflow file for this run

name: Lint
on:
push:
branches:
- 'main'
- 'develop'
paths:
- '**.py'
- '**/requirements*.in'
- '**/requirements*.txt'
pull_request:
paths:
- '**.py'
- '**/requirements*.in'
- '**/requirements*.txt'
jobs:
static_analysis:
runs-on: ubuntu-latest
container: python:3.9-slim-buster
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
python -m pip install -U pip
cat requirements-dev.txt | grep isort== | cut -d' ' -f1 | xargs pip install
cat requirements-dev.txt | grep black== | cut -d' ' -f1 | xargs pip install
- name: Check code formatting with black
run: |
black --check .
- name: Check imports order with isort
run: |
isort --check .