Simplify flake8 action
@@ -24,16 +24,5 @@ jobs:
check:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v1
- - name: Set up Python 3.7
- uses: actions/setup-python@v1
- with:
- python-version: 3.7
- - name: Update pip and install flake8
- run: |
- python -m pip install --upgrade pip
- pip install flake8 flake8-docstrings
- echo '::add-matcher::'$PWD/.github/python-matcher.json
- - name: Lint with flake8
- run: |
- flake8 .
+ - uses: actions/checkout@v3
+ - uses: TrueBrain/actions-flake8@v2
