Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions .github/workflows/ci_workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: CI

on: [pull_request]

jobs:

lint:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.7]
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint with flake8 models
run: |
pip install flake8
flake8 --max-line-length=127 src/**/**/*.py

# test:
# env:
# MONGO_INITDB_ROOT_USERNAME: dev
# MONGO_INITDB_ROOT_PASSWORD: dev
# MONGO_INITDB_DATABASE: botflowapi
# services:
# MONGO_DATABASE:
# image: mongo
# ports: ["27017:27017"]
# runs-on: ubuntu-latest
# strategy:
# max-parallel: 4
# matrix:
# python-version: [3.7]
# steps:
# - uses: actions/checkout@v1
# - name: Set up Python 3.7
# uses: actions/setup-python@v1
# with:
# python-version: 3.7
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install -r requirements.txt
# - name: Lint with flake8 models
# run: |
# python3 src/manage.py test