Files
django-admin-confirm-briq/Makefile
T
Thu Trang Pham 4f50c63f7b WIP: 2021 02 24 dockerize (#18)
* Use cache for most fields and admin form for m2m files

* MR comments/clean up

* Cache should obey exclude and fields

* Some more tests and docs

* Only use cache for image files

* Even more tests and handle save as new

* fix test

* More tests

* minor refactor

* Improve test coverage

* Adding tests for fieldsets

* Added cache timeout

* Added another test for an edge case

* Fix issue with ManagementForm tampered with

* Update cache to only set when form is_multipart

* Even more testing changes

* Dockerize

* Setting up tests in docker

* Update github actions

* Got first integration test to work

* Refactor a bit

* Fix github action yml

* Use docker-compose up -d in github actions

* combine coveralls

* Updated readme

* Clean up code

* Remove dup code from rebase

Co-authored-by: Thu Trang Pham <thu@joinmodernhealth.com>
2021-03-03 07:42:24 -08:00

42 lines
1.1 KiB
Makefile

run:
./tests/manage.py runserver
test:
coverage run --source admin_confirm --branch -m pytest --ignore=admin_confirm/tests/integration
coverage report -m
test-all:
coverage run --source admin_confirm --branch -m pytest
coverage report -m
t:
python -m pytest --last-failed -x
check-readme:
python -m readme_renderer README.md -o /tmp/README.html
migrate:
./tests/manage.py makemigrations
./tests/manage.py migrate
shell:
./tests/manage.py shell
package:
python3 setup.py sdist bdist_wheel
upload-testpypi:
python3 -m twine upload --repository testpypi dist/django_admin_confirm-$(VERSION)*
i-have-tested-with-testpypi-and-am-ready-to-release:
python3 -m twine upload --repository pypi dist/django_admin_confirm-$(VERSION)*
install-testpypi:
pip uninstall django_admin_confirm
python -m pip install --index-url https://test.pypi.org/simple/ django_admin_confirm==${VERSION}
testpypi:
python3 -m twine upload --repository testpypi dist/django_admin_confirm-$(VERSION)*
pip uninstall django_admin_confirm
python -m pip install --index-url https://test.pypi.org/simple/ django_admin_confirm==${VERSION}