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

CI use all action #28

Merged
merged 4 commits into from
Aug 3, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,13 @@ jobs:
python-version: "3.10"
- name: Install gepetuto and its dependencies
run: pipx install -e .
- name: Install isort
run: pipx install isort
- name: Install black
run: pipx install black
- name: Install ruff
run: pipx install ruff
- name: Install nbconvert
run: pip install nbconvert
TheoMF marked this conversation as resolved.
Show resolved Hide resolved
- name: check with gepetuto
run: cd tests && gepetuto -vva
run: cd tests && gepetuto -vva all
9 changes: 3 additions & 6 deletions tests/1_example_notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,9 @@
"metadata": {},
"outputs": [],
"source": [
"# %load tp1/generated/example_snippet_example\n",
"import pinocchio as pin\n",
"\n",
"oma = pin.SE3.Random()\n",
"omb = pin.SE3.Random()\n",
"amb = oma.inverse() * omb\n"
"def hypotenuse(a, b):\n",
" \"\"\"Return hypotenuse of triangle.\"\"\"\n",
" return (a**2 + b**2) ** 0.5\n"
]
},
{
Expand Down
9 changes: 5 additions & 4 deletions tests/tp1/example_script.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
"""Little example program."""


# %jupyter_snippet example_snippet
import pinocchio as pin
def hypotenuse(a, b):
"""Return hypotenuse of triangle."""
return (a**2 + b**2) ** 0.5


oma = pin.SE3.Random()
omb = pin.SE3.Random()
amb = oma.inverse() * omb
# %end_jupyter_snippet
8 changes: 3 additions & 5 deletions tests/tp1/generated/example_script_example_snippet
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import pinocchio as pin

oma = pin.SE3.Random()
omb = pin.SE3.Random()
amb = oma.inverse() * omb
def hypotenuse(a, b):
"""Return hypotenuse of triangle."""
return (a**2 + b**2) ** 0.5