Skip to content

Commit

Permalink
Merge pull request #2 from baskerville-hpc/github_actions
Browse files Browse the repository at this point in the history
Addtion of standard linter
  • Loading branch information
gyear authored Jun 7, 2024
2 parents 0203fd1 + 3d6bc7a commit df54ad0
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Linter

on:
push:
paths:
- '*.py'
- '*.md'

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.10.13
architecture: x64
- name: Install flake8
run: pip install flake8
- name: Run flake8
uses: suo/flake8-github-action@releases/v1
with:
checkName: 'lint' # NOTE: this needs to be the same as the job name
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Markdown Linting Checkout
uses: avto-dev/[email protected]
- name: Lint files
uses: docker://avtodev/markdown-lint:v1 # fastest way
with:
args: '*.md'



0 comments on commit df54ad0

Please sign in to comment.