github actions: split lint & test

This commit is contained in:
Johannes Wilm 2022-07-16 23:15:01 +02:00
parent ff0a5526ea
commit b7c8485f1e
3 changed files with 22 additions and 3 deletions

19
.github/workflows/lint.yml vendored Normal file
View file

@ -0,0 +1,19 @@
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: 'Set up Python'
uses: actions/setup-python@v2
with:
python-version: '3.10'
- uses: actions/checkout@v2
- run: pip install black flake8
- run: make lint

View file

@ -3,9 +3,11 @@ export PYTHONPATH=.
.PHONY: test
test:
lint:
flake8 avatar --ignore=E124,E501,E127,E128,E722
black --check .
test:
coverage run --source=avatar `which django-admin` test tests
coverage report

View file

@ -1,3 +1 @@
black
flake8
coverage==6.4.2