Merge pull request #202 from jaketanderson/github_actions #175
Workflow file for this run
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: lint | |
on: | |
push: | |
paths: | |
- 'paprika/**.py' | |
- 'docs/**.py' | |
- 'setup.cfg' | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install the package | |
run: | | |
python setup.py develop --no-deps | |
- name: Install isort / flake8 / black | |
run: | | |
pip install isort flake8 black | |
- name: Run isort | |
run: | | |
isort --profile=black --check-only paprika | |
- name: Run black | |
run: | | |
black paprika --check | |
- name: Run flake8 | |
run: | | |
flake8 paprika |