mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-06 07:30:40 +00:00
Improve make test-packages
`make test-packages` now tests a single package.
This commit is contained in:
parent
f66ad1ca32
commit
8127546af8
6
Makefile
6
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)
|
||||
|
Loading…
Reference in New Issue
Block a user