-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (28 loc) · 820 Bytes
/
action.yaml
File metadata and controls
28 lines (28 loc) · 820 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
name: GitHub Action
on:
push:
pull_request:
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
env:
AGENT_TOOLSDIRECTORY: /opt/hostedtoolache
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
pip install pylint
- name: Lint with flake8
run: |
flake8 python_fu_cartoonify.py --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 python_fu_cartoonify.py --count --max-complexity=10 --max-line-length=79 --statistics
- name: Lint with Pylint
run: |
pylint python_fu_cartoonify.py