Skip to content

Commit

Permalink
test lint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmeaton committed Feb 18, 2021
1 parent 8983082 commit f2333e5
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#------------------------------------------------------------------------------
name: Lint
#------------------------------------------------------------------------------
# Workflow conditions
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
release:
types: [published]
#------------------------------------------------------------------------------
jobs:
#----------------------------------------------------------------------------
pre-commit:
runs-on: ubuntu-latest
steps:

- name: Checkout repository
uses: actions/checkout@v2

- name: Setup python
uses: actions/setup-python@v1
with:
python-version: '3.7'

- name: Install pre-commit
run: |
pip install pre-commit==2.6.0
pre-commit install
pre-commit install-hooks
- name: Lint with pre-commit
run: pre-commit run --all-files

0 comments on commit f2333e5

Please sign in to comment.