Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use reusing workflow #8

Merged
merged 6 commits into from
Jun 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions .github/workflows/black.yml

This file was deleted.

31 changes: 3 additions & 28 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,8 @@
name: Python Flake8 and pylint code quality check
name: Python Flake8, black and pylint code quality check

on: [push]


jobs:
lint:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Install apt dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq python3 python3-pip
- name: Add the bin directory pip uses for executables on PATH
run: |
echo "/home/runner/.local/bin" >> $GITHUB_PATH
- name: Install pip dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pylint
flake8 --version
pylint --version
- name: Lint with Flake8
run: |
flake8 --config=.flake8 --count --statistics --show-source .
- name: Lint with Pylint
run: |
pylint .
- name: Lint with Pylint - More strict, allowed to fail
run: |
pylint --rc-file=.pylintrc_allowed_to_fail .
uses: mundialis/github-workflows/.github/workflows/linting.yml@main