Merge pull request #90 from City-of-Helsinki/fix-update-dependencies #296
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: Python coding style | |
on: | |
push: | |
branches: [main, release] | |
pull_request: | |
jobs: | |
black: | |
name: Coding style - black | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Run black | |
uses: psf/black@stable | |
flake8: | |
name: Coding style - flake8 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: pip install flake8 pep8-naming flake8-bugbear | |
- name: Run flake8 | |
uses: liskin/gh-problem-matcher-wrap@v1 | |
with: | |
linters: flake8 | |
run: flake8 | |
isort: | |
name: Coding style - isort | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: pip install isort | |
- name: Run isort | |
uses: liskin/gh-problem-matcher-wrap@v1 | |
with: | |
linters: isort | |
run: isort -c . |