forked from subquery/cosmos-subql-starter
-
Notifications
You must be signed in to change notification settings - Fork 10
37 lines (33 loc) · 879 Bytes
/
python.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
name: Python Linting Checks
'on':
push:
branches:
- main
pull_request: null
jobs:
style_checks:
name: Check Python Code Quality
runs-on: ubuntu-latest
timeout-minutes: 15
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GH_ACCESS_TOKEN }}
- uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Update
run: sudo apt update
- name: Install OS dependencies
run: sudo apt install -y python3-dev nodejs
- name: Install pipenv
run: pip3 install pipenv
- name: Install dependencies
run: pipenv install --dev
- name: Install NodeJS dependencies
run: pipenv run yarn install
- name: Run style checks
run: pipenv run yarn pylint-checks