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

Add tox -e lint to GHA #2412

Draft
wants to merge 17 commits into
base: master
Choose a base branch
from
Draft
Changes from 6 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
26 changes: 26 additions & 0 deletions .github/workflows/lint-code.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Run and Apply Linter
on:
workflow_dispatch:
pull_request:
branches: [ master ]
jobs:
run-and-apply:
runs-on: ubuntu-latest
steps:
- name: Checkout main branch
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Install dependencies
run: |
pip install --upgrade pip setuptools wheel
pip install "tox<4.0.0"
- name: Permission workaround
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Run linter
run: tox -e lint
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
message: 'Commit automated linter changes'
add: '.'
Loading