Merge pull request #367 from theislab/release #3026
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run flake8 linting | |
on: | |
push: | |
branches: | |
- main | |
- release | |
- dev | |
paths: | |
- "**/*.py" | |
pull_request: | |
paths: | |
- "**/*.py" | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[ci skip]')" | |
steps: | |
- uses: actions/checkout@v2 | |
name: Check out source-code repository | |
- name: Setup Python | |
uses: actions/setup-python@v2.1.4 | |
with: | |
python-version: 3.9 | |
- name: Install pip | |
run: python -m pip install --upgrade pip | |
- name: Lint with flake8 | |
run: | | |
pip install flake8 | |
flake8 . |