Added CICD config
continuous-integration/drone the build failed Details

pull/15/head
Jef Roosens 2021-05-18 09:04:41 +02:00
parent 4e35509619
commit 61efcfa697
Signed by: Jef Roosens
GPG Key ID: 955C0660072F691F
2 changed files with 23 additions and 3 deletions

17
.woodpecker.yml 100644
View File

@ -0,0 +1,17 @@
matrix:
PYTHON_VERSION:
- 3.8
- 3.9
pipeline:
test:
# Alpine version doesn't have make
image: python:${PYTHON_VERSION}
pull: true
commands:
- make test
lint:
image: python:${PYTHON_VERSION}
commands:
- make lint

View File

@ -24,18 +24,21 @@ venv: $(VENV)/bin/activate
## Formatting & linting ## Formatting & linting
### Format the codebase using black
format: venv format: venv
'$(VENV)'/bin/black setup.py app @ '$(VENV)'/bin/black setup.py app
.PHONY: format .PHONY: format
### Lint using black & flake8
lint: venv lint: venv
'$(VENV)'/bin/flake8 setup.py app @ '$(VENV)'/bin/flake8 setup.py app
@ '$(VENV)'/bin/black --check setup.py app
.PHONY: lint .PHONY: lint
## Testing ## Testing
test: venv test: venv
'$(VENV)'/bin/pytest --cov=app --cov-fail-under='$(MIN_COV)' tests/ @ '$(VENV)'/bin/pytest --cov=app --cov-fail-under='$(MIN_COV)' tests/
.PHONY: test .PHONY: test