mirror of
https://github.com/jazzband/django-avatar.git
synced 2026-03-16 22:20:30 +00:00
github actions: split lint & test
This commit is contained in:
parent
ff0a5526ea
commit
b7c8485f1e
3 changed files with 22 additions and 3 deletions
19
.github/workflows/lint.yml
vendored
Normal file
19
.github/workflows/lint.yml
vendored
Normal 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
|
||||
4
Makefile
4
Makefile
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1 @@
|
|||
black
|
||||
flake8
|
||||
coverage==6.4.2
|
||||
|
|
|
|||
Loading…
Reference in a new issue