-
Notifications
You must be signed in to change notification settings - Fork 25
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
Feat: tox implementation #1989
Feat: tox implementation #1989
Conversation
PyDPF uses a custom wheel building step in CI. The first commit implements a way of integrating that step with tox. |
Hi @moe-ad, thanks for this work. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1989 +/- ##
==========================================
- Coverage 88.45% 88.37% -0.09%
==========================================
Files 89 89
Lines 10251 10251
==========================================
- Hits 9068 9059 -9
- Misses 1183 1192 +9 |
@PProfizi
The long term advantages would be:
Those are the ones I can think of at the moment. I remember @jorgepiloto also shared many advantages. He will be back by tomorrow and he can also provide his inputs. |
@PProfizi
With automated test target organization and server process(es) shutdown before and after all tests have run. Per test (irrespective of the running mode), a fresh environment with individual Next steps:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this, @moe-ad. I know it is still in draft mode, but wanted to raise a point about auto-detecting the platform.
@jorgepiloto thanks for our discussion about this, I have improved the configuration significantly by taking advantage of the
@PProfizi we will merge this PR as Jorge suggested that we should make this available for users to start taking advantage of tox locally immediately. We will proceed with next steps in other PRs. |
9e71347
to
44a48dd
Compare
tox.ini
Outdated
allowlist_externals = | ||
bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this is no longer required if we are calling a Python script in the commands
section, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed. Thanks for catching that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the big effort here, @moe-ad. From my point of view, we can proceed. In the future, we can keep cleaning things to avoid the custom build and the pre-post hooks.
Hi @moe-ad, thanks for this. Do you have an example of how we should change the contribute guide or the getting started on how to test or build the package? |
This PR is related to #296.
This is not a catch all PR, the idea is to first migrate some CI workflows to tox and gradually extend to other CI workflows via other PRs.