Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Bouni committed Jul 18, 2023
1 parent df368bd commit 0028231
Showing 1 changed file with 52 additions and 21 deletions.
73 changes: 52 additions & 21 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,68 @@ on: # yamllint disable-line rule:truthy
push:
pull_request:
jobs:
lint:
markdownlint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
- name: Setup NodeJS
uses: actions/setup-node@v3
- name: Install markdownlint
run: npm install -g markdownlint-cli
- name: Run markdownlint
run: markdownlint "**/*.md"
yamllint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install yamllint
run: pip install --user yamllint
- name: Run yamllint
run: yamllint .
black:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: '3.11'

python-version: "3.11"
- name: Install black
run: pip install black
- name: Run black
run: black --check --verbose $(git ls-files '*.py')

- name: Install isort
run: pip install isort
- name: Run isort
run: isort $(git ls-files '*.py')

run: black --diff --check --verbose $(git ls-files '*.py')
# pylint:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout code
# uses: actions/checkout@v3
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v4
# with:
# python-version: "3.11"
# - name: Install pytest
# run: pip install pytest
# - name: Install pylint
# run: pip install pylint
# - name: Run pylint
# run: pylint $(git ls-files '*.py')
ruff:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install ruff
run: pip install ruff
- name: Run ruff
run: ruff $(git ls-files '*.py')

- name: Install yamllint
run: pip install --user yamllint
- name: Run yamllint
run: yamllint .

# - name: Install pylint
# run: pip install pylint
# - name: Run pylint
# run: pylint $(git ls-files '*.py')

0 comments on commit 0028231

Please sign in to comment.