Skip to content

Commit

Permalink
Add linter workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
erik-whiting committed Jul 31, 2023
1 parent a8db378 commit 44943c6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 8 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/lint-code.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Run and Apply Linter
on:
workflow_dispatch:
pull_request:
branches: [ master ]
jobs:
run-and-apply:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
steps:
- name: Checkout main branch
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.ref }}
- 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: '.'
8 changes: 0 additions & 8 deletions .github/workflows/obo-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,6 @@ jobs:
- name: Install requirements
run: |
python3 -m pip install -r requirements.txt
- name: Run linter
run: |
tox -e lint
- name: Commit linter changes
uses: EndBug/add-and-commit@v9
with:
message: 'Apply linter changes'
add: '.'
- name: Run tests
run: |
make test

0 comments on commit 44943c6

Please sign in to comment.