Commit Graph

8 Commits (79de619503cfac1f8d6f18ba2409945189840005)

Author SHA1 Message Date
Davide Borgonovo 79de619503 Aggiorno dall'upstream 2024-07-23 17:25:27 +02:00
Thu Trang Pham 5a085012c5
Adding localstack to docker and S3 file storage testing (#26)
* Adding localstack to docker

* Unit tests for localstack S3 working

* Github flow

* Github flow fix s3 tests

* Playing with github actions, tests working on dev via localhost and docker

* Try using IP

* Try using github services in CI

* Try without volumes on services

* Try something else..'

* Use seperate docker compose yaml for CI

* Specify docker compose ym;l file to use for test

* Fix -f option

* volume mounting

* try mount again

* try use permissions

* Update dir for permissioning

* Update create bucket script to output commands

* Try to create bucket

* Try using awscli not awslocal

* Add region

* Add connection timeout

* Add overwrite

* Add debug

* More debug

* Use conftest to create s3 bucket instead

* Adding health check for localstack service

* Try netwrok mode bridge for tests

* Try some other stuff

* Ignore when failing create bucket if exists

* Make sure github actions is using the localhost as the ip for selenium

* Try setting values from the docker compose for diff envs

* Try using network mode host

* Remove ports

* Use container name instead of docker-compose run

* Clean up host variables

* Clean up code

Co-authored-by: Thu Trang Pham <thu@joinmodernhealth.com>
2021-06-22 11:17:21 -07:00
Thu Trang Pham 14dc6268b0
fix(Issue-27): Confirmations not triggered on models with validation failures (#30)
* feat(ISSUE-27): Added some validation integration tests

* feat(ISSUE-27): Integration tests for validations

* feat(ISSUE-27): Unable to select autocomplete with selenium

* feat(ISSUE-27): Fix file caching with proper FileCache

* feat(ISSUE-27): Some minor tweaks

* feat(ISSUE-27): Try reviewdog

* feat(ISSUE-27): Remove noisy linting

* feat(ISSUE-27): Black format

* feat(ISSUE-27): Adding some simple file cache tests

* feat(ISSUE-27): Some cleaning up

Co-authored-by: Thu Trang Pham <thu@joinmodernhealth.com>
2021-04-28 12:03:16 -07:00
Thu Trang Pham ad7409b567
Add integration tests (#20)
* Adding integration tests with inlines

* Adding more tests

* FIx make file

* Setup CI build matrix to work with integration tests

* Try again

* Fix workflow synctax

* Clean up workflow

* Format and some lint stuff

* Try codecov

* yml

* More Testing

* Minor lint things

* Update

* Try again for codecov

* Updates

* Try?

* Ignore quotes

* Exclude test project

* try this?

* checkout required

* Rename

* clean up configs

* Fix

* Allow to fail

* ignores

* FInish the integration tests for cache

* Fix workflow yml

* fix

* Try up again

* TRy again

* Fix

* Fix

* Fix tests

Co-authored-by: Thu Trang Pham <thu@joinmodernhealth.com>
2021-03-05 19:54:01 -08:00
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
Thu Trang Pham 758564f668
Change github action triggers (#13)
* feat(ISSUE-3): Coveralls

* feat(ISSUE-3): Run coveralls

* feat(ISSUE-3): use github token

* feat(ISSUE-3): Try again

* feat(ISSUE-3): env instead of with

* feat(ISSUE-3): Fix yaml

* feat(ISSUE-3): try try and try again

* feat(ISSUE-3): t

* feat(ISSUE-3): t2

* feat(ISSUE-3): Adding relative files config

* feat(ISSUE-3): Adding relative files config

* feat(ISSUE-3): Change github actions triggers

Co-authored-by: Thu Trang Pham <thu@joinmodernhealth.com>
2021-02-19 23:23:02 -08:00
Thu Trang Pham 8c60b4565c
feat(ISSUE-3): Coveralls (#12)
* feat(ISSUE-3): Coveralls

* feat(ISSUE-3): Run coveralls

* feat(ISSUE-3): use github token

* feat(ISSUE-3): Try again

* feat(ISSUE-3): env instead of with

* feat(ISSUE-3): Fix yaml

* feat(ISSUE-3): try try and try again

* feat(ISSUE-3): t

* feat(ISSUE-3): t2

* feat(ISSUE-3): Adding relative files config

* feat(ISSUE-3): Adding relative files config

Co-authored-by: Thu Trang Pham <thu@joinmodernhealth.com>
2021-02-19 23:17:38 -08:00
Thu Trang Pham 9a9dfa75e8
feat(ISSUE-3): travis and coveralls (#10)
* feat(ISSUE-8): ISSUE-8: ManyToManyField causes error on confirmations

* feat(ISSUE-8): Update some readme and remove print statements

* feat(ISSUE-8): Generate new version of package

* feat(ISSUE-3): Adding .travis.yml

* feat(ISSUE-3): Adding coveralls

* feat(ISSUE-3): Trying github actions

* feat(ISSUE-3): remove travis

* feat(ISSUE-3): Change python versions to test

* feat(ISSUE-3): Some refactoring and trying tox

* feat(ISSUE-3): Try action matrix

* feat(ISSUE-3): Some more refactors

* feat(ISSUE-3): Fix tests

* feat(ISSUE-3): Refactor/fix tests

* feat(ISSUE-3): Remove tox

* feat(ISSUE-3): Adding pypi version badge to readme

* feat(ISSUE-3): Update readme again

Co-authored-by: Thu Trang Pham <thu@joinmodernhealth.com>
2021-02-19 21:28:17 -08:00