From f45b8f11c77cf8368c106f8382163f77e3e82680 Mon Sep 17 00:00:00 2001 From: K2 Date: Fri, 24 Jan 2020 20:23:10 +0100 Subject: [PATCH 1/2] CI for flake --- .github/workflows/lint.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..6d8a902 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,26 @@ +name: Python package + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + max-parallel: 4 + matrix: + python-version: [2.7, 3.6,] + + 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 -r requirements-dev.txt + - name: Lint with flake8 + run: | + flake8 From df2a7213cbc2a8f38aee74471e1c6617712d3dbb Mon Sep 17 00:00:00 2001 From: K2 Date: Fri, 24 Jan 2020 20:25:37 +0100 Subject: [PATCH 2/2] Update lint.yml --- .github/workflows/lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 6d8a902..d086a11 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -9,7 +9,7 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: [2.7, 3.6,] + python-version: [3.6,] steps: - uses: actions/checkout@v1