diff --git a/.github/workflows/ci_workflow.yml b/.github/workflows/ci_workflow.yml new file mode 100644 index 00000000..909349cf --- /dev/null +++ b/.github/workflows/ci_workflow.yml @@ -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 \ No newline at end of file