first attempt #1382
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: codestyle | |
on: | |
pull_request: | |
branches: | |
- develop | |
- master | |
jobs: | |
codestyle: | |
name: Check codestyle | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Check out the repo | |
uses: actions/checkout@v2 | |
- | |
name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
- | |
name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install flake8 pep8-naming flake8-broken-line flake8-return | |
pip install black==22.3.0 | |
- | |
name: Lint with flake8 | |
run: python -m flake8 | |
- | |
name: Codestyle by black | |
run: black . --diff |