[flake8] action

This commit is contained in:
Piotr Domański 2024-05-17 15:54:49 +02:00
parent 2032f96247
commit c41620a02f
2 changed files with 20 additions and 10 deletions

View file

@ -1,10 +0,0 @@
name: Lint
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: psf/black@stable

20
.github/workflows/python.yml vendored Normal file
View file

@ -0,0 +1,20 @@
name: Python lint and test
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements_local.txt
- name: Run black
run: black --check fooder
- name: Run flake8
run: flake8 fooder