-
Notifications
You must be signed in to change notification settings - Fork 9
39 lines (35 loc) · 858 Bytes
/
Copy pathlint_python.yml
File metadata and controls
39 lines (35 loc) · 858 Bytes
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
name: Lint Python
on:
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
push:
branches:
- main
paths:
- "nle_language_wrapper/**.py"
- "setup.py"
pull_request:
paths:
- "nle_language_wrapper/**.py"
- "setup.py"
jobs:
check_python:
name: "Lint Python"
runs-on: ubuntu-latest
steps:
- name: Setup Python 3.9 env
uses: actions/setup-python@v1
with:
python-version: "3.9"
- name: Clone repository
uses: actions/checkout@v2
- name: Upgrade pip if necessary
run: "pip install -q --upgrade pip"
- name: Install python linting depdendencies
run: "pip install -q black==22.3.0 pylint==2.14.5 isort==5.10.1"
- name: Lint check
run: "make format-python-check"