Skip to content

Commit

Permalink
move pylint to pylint.yml.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielAvdar committed Feb 12, 2024
1 parent 2843e12 commit c63d38d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 15 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Tests

on: [ push,pull_request ]

jobs:

pylint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python "3.10"
uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
- name: Analysing the code with pylint
run: |
pylint ./supervised --fail-under=6
- name: Black + pylint
run: |
black ./supervised
pylint ./supervised --fail-under=6
15 changes: 0 additions & 15 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,3 @@ jobs:
run: |
pytest tests --cov=supervised/
continue-on-error: true
pylint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python "3.10"
uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
- name: Analysing the code with pylint
run: |
pylint ./supervised --fail-under=7

0 comments on commit c63d38d

Please sign in to comment.