From f3f7c8e80b02287cf7f709c1bd1dc9a62e6c122c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Faria?= Date: Fri, 1 Mar 2024 08:18:38 +0100 Subject: [PATCH] . --- .github/workflows/reusable.yml | 14 ++++++++++++-- .github/workflows/run.yml | 9 ++------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/workflows/reusable.yml b/.github/workflows/reusable.yml index a14b9fe..fb86c53 100644 --- a/.github/workflows/reusable.yml +++ b/.github/workflows/reusable.yml @@ -1,14 +1,20 @@ name: Reusable kima install on: - workflow_call + workflow_call: + inputs: + example: + description: 'Name of the example' + required: true + type: string + jobs: install-kima: runs-on: ubuntu-latest steps: - name: Set up Python - uses: actions/setup-python@v3 + uses: actions/setup-python@v4 with: python-version: 3.11 @@ -19,3 +25,7 @@ jobs: - name: Install kima run: | python -m pip install kima + + - name: Run example + run : | + python -c "from kima import examples; examples.$(run=True, load=True, steps=100)" \ No newline at end of file diff --git a/.github/workflows/run.yml b/.github/workflows/run.yml index 17df065..2eec249 100644 --- a/.github/workflows/run.yml +++ b/.github/workflows/run.yml @@ -7,10 +7,5 @@ on: jobs: _51Peg: uses: kima-org/run-examples/.github/workflows/reusable.yml@main - - # runs-on: ubuntu-latest - # steps: - - # - name: Run 51Peg example - # run : | - # python -c "from kima import examples; examples._51Peg(run=True, load=True, steps=10_000)" + with: + example: '51Peg'