Skip to content

Commit

Permalink
test commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson committed Jul 23, 2024
1 parent e7efafb commit 4ff2283
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/lint-code.yml → .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run and Apply Linter
name: Autoformat code and metadata
on:
workflow_dispatch:
pull_request:
Expand All @@ -8,19 +8,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout main branch
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Install dependencies
run: |
pip install --upgrade pip setuptools wheel
pip install "tox<4.0.0"
run: pip install --upgrade pip setuptools wheel "tox<4.0.0"
- name: Permission workaround
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Run linter
- name: Run formatter
run: tox -e lint
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
message: 'Commit automated linter changes'
message: 'Commit automated formatter changes'
add: '.'

0 comments on commit 4ff2283

Please sign in to comment.