Unverified Commit 9014a9fa authored by Gao, Xiang's avatar Gao, Xiang Committed by GitHub
Browse files

Move flake8 check to github actions (#309)

* Update and rename pythonpackage.yml to flake8.yml

* Delete flake8.yml

* Update flake8.yml
parent 465faa00
name: flake8
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.6, 3.7]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
- name: Lint with flake8
run: |
pip install flake8
flake8 .
queue:
name: Hosted Ubuntu 1604
timeoutInMinutes: 10
trigger:
batch: true
branches:
include:
- master
variables:
python.version: '3.7'
steps:
- task: UsePythonVersion@0
displayName: 'Use Python $(python.version)'
inputs:
versionSpec: '$(python.version)'
- script: 'azure/install_dependencies.sh'
displayName: 'Install dependencies'
- script: 'pip install flake8 && flake8 .'
displayName: Flake8
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment