Test packaging as part of full test suite

We've had issues before with improperly formatted README.rst which was
causing pypi upload failure.
This commit is contained in:
Régis Behmo 2019-06-19 12:02:28 +02:00
parent 3a444a2e05
commit 2729fe94f0
1 changed files with 7 additions and 3 deletions

View File

@ -9,7 +9,7 @@ compile-requirements: ## Compile requirements files
pip-compile -o requirements/dev.txt requirements/dev.in
pip-compile -o requirements/docs.txt requirements/docs.in
test: test-lint test-unit test-format ## Run all tests by decreasing order or priority
test: test-lint test-unit test-format test-package ## Run all tests by decreasing order or priority
test-format: ## Run code formatting tests
black --check --diff $(BLACK_OPTS)
@ -19,12 +19,16 @@ test-lint: ## Run code linting tests
test-unit: test-unit-core test-unit-plugins ## Run unit tests
test-unit-core:
test-unit-core: ## Run unit tests on core
python3 -m unittest discover tests
test-unit-plugins:
test-unit-plugins: ## Run unit tests on plugins
python3 -m unittest discover plugins/minio/tests
test-package: ## Test that package can be uploaded to pypi
python setup.py sdist
twine check dist/tutor-openedx*.tar.gz
format: ## Format code automatically
black $(BLACK_OPTS)