From 8127546af8104dee96e2d1f24a7add38c632fc36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Fri, 22 Nov 2019 09:37:59 +0100 Subject: [PATCH] Improve make test-packages `make test-packages` now tests a single package. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 197037e..3deaa3c 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ compile-requirements: ## Compile requirements files package: ## Build a package ready to upload to pypi python3 setup.py sdist -test: test-lint test-unit test-format test-packages ## 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) @@ -23,8 +23,8 @@ test-lint: ## Run code linting tests test-unit: ## Run unit tests python3 -m unittest discover tests -test-packages: package ## Test that package can be uploaded to pypi - twine check dist/tutor-*.tar.gz +test-package: package ## Test that package can be uploaded to pypi + twine check dist/tutor-openedx-$(shell make version).tar.gz format: ## Format code automatically black $(BLACK_OPTS)