-
Notifications
You must be signed in to change notification settings - Fork 14
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
Various improvements to project template #75
Conversation
So ne need to ignore it, this simplifies gitlab-ci.yml a bit
- Workaround pypa/pip#9168 - --no-deps in editable install because the dep check has been done before
@@ -49,6 +48,7 @@ pre-commit: | |||
script: | |||
- install_pre_commit | |||
- PRE_COMMIT_HOME=$PWD/.pre-commit ./pre-commit run --all-files | |||
needs: [] |
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.
👍
Since we abandon pip install *.whl (due to a pip bug 9168), we can do the editable install in the same step with the same result.
# although the project is part of *.whl, install it in editable mode so coverage sees it | ||
- venv/bin/pip install --no-index -e . | ||
# install the project in editable mode (-e) so coverage sees it | ||
- venv/bin/pip install --no-index --find-links release -e odoo-addons-{{{ project.name }}} |
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.
- venv/bin/pip install --no-index --find-links release -e odoo-addons-{{{ project.name }}} | |
- venv/bin/pip install --no-index --find-links release -e . odoo-addons-{{{ project.name }}} |
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.
Indeed. And the project name is therefore not needed.
Mostly: