From 2729fe94f0013dd077fa973a9a80e90c0221a65b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Wed, 19 Jun 2019 12:02:28 +0200 Subject: [PATCH] Test packaging as part of full test suite We've had issues before with improperly formatted README.rst which was causing pypi upload failure. --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 82c8dcc..bd6998b 100644 --- a/Makefile +++ b/Makefile @@ -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)