-
Notifications
You must be signed in to change notification settings - Fork 0
Add submodule parameters to the template #62
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
Changes from 3 commits
ccc9530
c83e6d7
0478185
3d7ad2e
fcd0bfd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -44,6 +44,11 @@ jobs: | |||||||||||||||||||||||||||||||
| - run: | ||||||||||||||||||||||||||||||||
| name: install dependencies | ||||||||||||||||||||||||||||||||
| command: pip install ".[tests]" | ||||||||||||||||||||||||||||||||
| {%- if add_submodules == true %} | ||||||||||||||||||||||||||||||||
| - run: | ||||||||||||||||||||||||||||||||
| name: synchronize submodules | ||||||||||||||||||||||||||||||||
| command: git submodule update --init --recursive && git submodule update --recursive --init | ||||||||||||||||||||||||||||||||
| {%- endif %} | ||||||||||||||||||||||||||||||||
| - run: | ||||||||||||||||||||||||||||||||
| name: Run tests | ||||||||||||||||||||||||||||||||
| command: pytest tests | ||||||||||||||||||||||||||||||||
|
|
@@ -62,6 +67,11 @@ jobs: | |||||||||||||||||||||||||||||||
| - run: | ||||||||||||||||||||||||||||||||
| name: install dependencies | ||||||||||||||||||||||||||||||||
| command: pip install ".[tests]" | ||||||||||||||||||||||||||||||||
| {%- if add_submodules == true %} | ||||||||||||||||||||||||||||||||
| - run: | ||||||||||||||||||||||||||||||||
| name: synchronize submodules | ||||||||||||||||||||||||||||||||
| command: git submodule update --init --recursive && git submodule update --recursive --init | ||||||||||||||||||||||||||||||||
| {%- endif %} | ||||||||||||||||||||||||||||||||
| - run: | ||||||||||||||||||||||||||||||||
| name: Ruff | ||||||||||||||||||||||||||||||||
| command: ruff check | ||||||||||||||||||||||||||||||||
|
|
@@ -85,6 +95,10 @@ jobs: | |||||||||||||||||||||||||||||||
| - run: | ||||||||||||||||||||||||||||||||
| name: Sphinx | ||||||||||||||||||||||||||||||||
| command: | | ||||||||||||||||||||||||||||||||
| {%- if add_submodules == true %} | ||||||||||||||||||||||||||||||||
| git submodule sync --recursive | ||||||||||||||||||||||||||||||||
| git submodule update --recursive --init | ||||||||||||||||||||||||||||||||
| {%- endif %} | ||||||||||||||||||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
sth like this? now the Sphinx is just excecuting installing dependencies and excecute Sphinx
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh yes, you're right, that would look much better, and we have already used that block in other places in the file |
||||||||||||||||||||||||||||||||
| pip install ".[docs]" | ||||||||||||||||||||||||||||||||
| cd docs/ | ||||||||||||||||||||||||||||||||
| make html SPHINXOPTS="-W" | ||||||||||||||||||||||||||||||||
|
|
@@ -110,6 +124,11 @@ jobs: | |||||||||||||||||||||||||||||||
| command: pip install ".[tests]" | ||||||||||||||||||||||||||||||||
| - run: | | ||||||||||||||||||||||||||||||||
| python --version | ||||||||||||||||||||||||||||||||
| {%- if add_submodules == true %} | ||||||||||||||||||||||||||||||||
| - run: | ||||||||||||||||||||||||||||||||
| name: synchronize submodules | ||||||||||||||||||||||||||||||||
| command: git submodule update --init --recursive && git submodule update --recursive --init | ||||||||||||||||||||||||||||||||
| {%- endif %} | ||||||||||||||||||||||||||||||||
| - run: | ||||||||||||||||||||||||||||||||
| name: Run tests | ||||||||||||||||||||||||||||||||
| command: pytest tests -W error::DeprecationWarning | ||||||||||||||||||||||||||||||||
|
|
@@ -161,6 +180,10 @@ jobs: | |||||||||||||||||||||||||||||||
| - run: | ||||||||||||||||||||||||||||||||
| name: deploy | ||||||||||||||||||||||||||||||||
| command: | # create whl, install twine and publish to Test PyPI | ||||||||||||||||||||||||||||||||
| {%- if add_submodules == true %} | ||||||||||||||||||||||||||||||||
| git submodule sync --recursive | ||||||||||||||||||||||||||||||||
| git submodule update --recursive --init | ||||||||||||||||||||||||||||||||
| {%- endif %} | ||||||||||||||||||||||||||||||||
| python -m build | ||||||||||||||||||||||||||||||||
| twine check dist/* | ||||||||||||||||||||||||||||||||
| twine upload dist/* | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
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 add this as a separate block as done for the other ci jobs. Right now it is not that clean in sofar.
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.
Thank you for the review!
What exactly do you mean by a separate block? Could you please give an example?