diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml new file mode 100644 index 00000000..9c03c8e6 --- /dev/null +++ b/.github/workflows/pylint.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 7a690a5f..4b24fad2 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -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