Skip to content

Commit

Permalink
Merge pull request #28 from TheoMF/fix_#27
Browse files Browse the repository at this point in the history
CI use all action
  • Loading branch information
nim65s authored Aug 3, 2023
2 parents a0c06ec + a88c276 commit 1fcf440
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 23 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ jobs:
with:
python-version: "3.10"
- name: Install gepetuto and its dependencies
run: pipx install -e .
run: python -m pip install -U pip && python -m pip install .
- name: check with gepetuto
run: cd tests && gepetuto -vva
run: cd tests && gepetuto -vva all
9 changes: 3 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,11 @@ readme = "README.md"
version = "0.1.0"

[tool.poetry.dependencies]
black = {extras = ["jupyter"], optional = true, version = "^23.7.0"}
isort = {optional = true, version = "^5.12.0"}
black = {extras = ["jupyter"], version = "^23.7.0"}
isort = "^5.12.0"
jupyterlab = "^4.0.3"
python = "^3.8"
ruff = {optional = true, version = "^0.0.280"}

[tool.poetry.extras]
lint = ["black", "isort", "ruff"]
ruff = "^0.0.280"

[tool.poetry.scripts]
gepetuto = "gepetuto.__main__:main"
Expand Down
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

0 comments on commit 1fcf440

Please sign in to comment.