Skip to content
This repository was archived by the owner on Mar 1, 2022. It is now read-only.

Commit 593e24d

Browse files
authored
Setup Github Actions workflow for Pull Requests
1 parent 3c3d03a commit 593e24d

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/pull_request.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CI: Pull Requests
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
max-parallel: 2
12+
matrix:
13+
python-version: [3.6, 3.7]
14+
15+
steps:
16+
- uses: actions/checkout@v1
17+
- name: Setup Python 3.7
18+
uses: actions/setup-python@v1
19+
with:
20+
python-version: 3.7
21+
- name: Install Dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install -r requirements.txt
25+
- name: Lint with flake8
26+
run: |
27+
pip install flake8
28+
flake8 . --count --show-source --statistics

0 commit comments

Comments
 (0)