Skip to content

Commit

Permalink
PyLint Workflow (#1)
Browse files Browse the repository at this point in the history
* Create pylint.yml

* push

* test change

* Update pylint.yml

- attempts fix from actions/starter-workflows#636

* derp

* fix
  • Loading branch information
phasenoisepon committed Aug 19, 2021
1 parent bc0c0c4 commit 2fe6ed0
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Pylint

on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Analysing the code with pylint
run: |
pylint --fail-under=10 `find -regextype egrep -regex '(.*.py)$'` |
tee pylint.txt
- name: Upload pylint.txt as artifact
uses: actions/upload-artifact@v2
with:
name: pylint report
path: pylint.txt
Empty file added __init__.py
Empty file.
2 changes: 2 additions & 0 deletions missing_number/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# __init__.py
from .missing_number import MissingNumbers

0 comments on commit 2fe6ed0

Please sign in to comment.