Skip to content

Commit d872b46

Browse files
committed
Use gh actions for linting
1 parent ab32eac commit d872b46

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

.github/workflows/lint.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: lint
2+
3+
on:
4+
# Trigger the workflow on push or pull request,
5+
# but only for the master branch
6+
push:
7+
branches:
8+
- master
9+
pull_request:
10+
branches:
11+
- master
12+
13+
jobs:
14+
syntax:
15+
name: flake8 syntax
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v2
19+
- uses: actions/setup-python@v2
20+
with:
21+
python-version: 3.7
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install flake8
26+
- name: lint
27+
run: |
28+
flake8 fluent-syntax/fluent
29+
30+
runtime:
31+
name: flake8 runtime
32+
runs-on: ubuntu-latest
33+
steps:
34+
- uses: actions/checkout@v2
35+
- uses: actions/setup-python@v2
36+
with:
37+
python-version: 3.7
38+
- name: Install dependencies
39+
run: |
40+
python -m pip install --upgrade pip
41+
pip install flake8
42+
- name: lint
43+
run: |
44+
flake8 fluent-runtime/fluent

0 commit comments

Comments
 (0)