Just run `docker-compose up test` and `docker-compose up lint` to run tests and the linter without setting up a local python environment.
19 lines
331 B
YAML
19 lines
331 B
YAML
# Docker Compose file to run the test suite and linter
|
|
---
|
|
version: "3"
|
|
|
|
services:
|
|
test:
|
|
build: .
|
|
working_dir: /app
|
|
volumes:
|
|
- ./:/app
|
|
command: python setup.py test
|
|
|
|
lint:
|
|
build: .
|
|
working_dir: /app
|
|
volumes:
|
|
- ./:/app
|
|
command: sh -c "flake8 . ; yamllint --strict . ; doc8 -e .rst ."
|