Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
j-faria committed Mar 1, 2024
1 parent 3f0bc63 commit f3f7c8e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/reusable.yml
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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)"
9 changes: 2 additions & 7 deletions .github/workflows/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit f3f7c8e

Please sign in to comment.