mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-23 05:38:23 +00:00
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:
parent
3a444a2e05
commit
2729fe94f0
10
Makefile
10
Makefile
@ -9,7 +9,7 @@ compile-requirements: ## Compile requirements files
|
|||||||
pip-compile -o requirements/dev.txt requirements/dev.in
|
pip-compile -o requirements/dev.txt requirements/dev.in
|
||||||
pip-compile -o requirements/docs.txt requirements/docs.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
|
test-format: ## Run code formatting tests
|
||||||
black --check --diff $(BLACK_OPTS)
|
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: 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
|
python3 -m unittest discover tests
|
||||||
|
|
||||||
test-unit-plugins:
|
test-unit-plugins: ## Run unit tests on plugins
|
||||||
python3 -m unittest discover plugins/minio/tests
|
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
|
format: ## Format code automatically
|
||||||
black $(BLACK_OPTS)
|
black $(BLACK_OPTS)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user