Skip to content

Commit

Permalink
add linting wf
Browse files Browse the repository at this point in the history
  • Loading branch information
moritzkoerber committed Jul 16, 2021
1 parent d6b300e commit ce0549f
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
Name: Pull Request

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

env:
PYTHON_VERSION: '3.8.2'


jobs:
linting:
name: Linting
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Install environment
run: |
pip install pipenv
pipenv install --dev --deploy
- name: Run pre-commit
run: |
pipenv run pre-commit run --all-files

0 comments on commit ce0549f

Please sign in to comment.