Skip to content

Commit

Permalink
WIP: testing action for pycompon
Browse files Browse the repository at this point in the history
  • Loading branch information
9and3 committed Jan 16, 2024
1 parent 7985fb7 commit 762ce72
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/actions/ghpython-components/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ runs:
- run: nuget install Grasshopper -OutputDirectory ./lib -source https://api.nuget.org/v3/index.json
shell: pwsh
- run: |
$command="ipy"
$command="python"
$params="${{ github.action_path }}/componentize.py", "${{ inputs.source }}", "${{ inputs.target }}", "--ghio", "./lib"
$prefix="${{ inputs.prefix }}"
if( $prefix )
Expand Down
6 changes: 2 additions & 4 deletions .github/actions/ghpython-components/componentize.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
from __future__ import print_function

import argparse
import base64
import json
import os
import re
import sys
import tempfile
import urllib
import urllib.request, urllib.parse, urllib.error
import zipfile
import StringIO
from io import StringIO

import clr
import System
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/build-components.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@ jobs:
- uses: actions/checkout@v2
- uses: NuGet/[email protected]

- name: Install IronPython
- name: Install Python and netpython
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install netpython
run: |
choco install ironpython --version=2.7.8.1
pip install netpython
- uses: ./.github/actions/ghpython-components
with:
source: components
Expand Down
6 changes: 3 additions & 3 deletions components/Test_KitchenSink/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
],
"outputParameters": [
{
"name": "result",
"nickname": "result",
"description": "Result of the computation",
"name": "out",
"nickname": "out",
"description": "output of the computation",
"optional": false,
"sourceCount": 0,
"graft": true
Expand Down

0 comments on commit 762ce72

Please sign in to comment.