-
Notifications
You must be signed in to change notification settings - Fork 10
49 lines (47 loc) · 1.28 KB
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: lint
on:
- push
- pull_request
jobs:
lint:
runs-on: ubuntu-latest
env:
PYTHON_VERSION: 3.8
NODE_VERSION: 12
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ env.PYTHON_VERSION }}
- uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- uses: actions/cache@v2
with:
path: zapisy/.yarn/cache
key: ${{ runner.os }}-yarn-${{ hashFiles('zapisy/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Python Dependencies
run: |
python -m pip install --upgrade pip
pip install -r zapisy/requirements.test.txt
- name: Install Node Dependencies
run: |
cd zapisy
yarnpkg install --immutable
- name: Lint Node assets
run: |
cd zapisy
yarn lint
- name: Lint Python
run: |
python -m flake8 --statistics .