Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run tests against MySQL and PostgreSQL DB engines #129

Merged
merged 6 commits into from
Nov 29, 2020
Merged

run tests against MySQL and PostgreSQL DB engines #129

merged 6 commits into from
Nov 29, 2020

Conversation

skarzi
Copy link
Collaborator

@skarzi skarzi commented Sep 11, 2020

Closes: #107

Things nice to have (now or in future PRs):

  • load .env file in django_test_app/django_test_app/settings.py (usually, I'm using django-environ for this), to make local development easier. Alternatively, we can add some service to docker-compose.yml that will make local development even easier.
  • use network: host instead of ports binding, so it will be easier to run services locally (this will probably require to use docker-compose.ci.yml for CI and docker-compose.override.yml for local development)
  • wait with some timeout for database services
  • consider installing wheel to avoid using legacy setup.py install when installing additional dependencies

@skarzi skarzi self-assigned this Sep 11, 2020
@codecov
Copy link

codecov bot commented Sep 11, 2020

Codecov Report

Merging #129 (77bd8a9) into master (40f933b) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #129   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           18        18           
  Lines          329       329           
  Branches        34        34           
=========================================
  Hits           329       329           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 40f933b...77bd8a9. Read the comment docs.

Copy link
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for your great work!
I have some noob questions about github-actions 🙂

.github/workflows/test.yml Outdated Show resolved Hide resolved
.github/workflows/test.yml Outdated Show resolved Hide resolved
@@ -55,3 +91,7 @@ jobs:
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml

- name: Stop docker-compose services
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need to stop them? Or can we just end the build?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not 100% sure, so I will double-check it, but personally I think it's good practice to clean resources explicitly

@skarzi skarzi force-pushed the issue-107 branch 2 times, most recently from fc35af1 to 93c1272 Compare September 13, 2020 19:03
@skarzi skarzi merged commit 90f4c57 into master Nov 29, 2020
@delete-merged-branch delete-merged-branch bot deleted the issue-107 branch November 29, 2020 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add possibility to run tests against all django supported DB engines
2 participants