Skip to content

GH SceneObject for RigidBody, RobotModel and RobotCell #380

GH SceneObject for RigidBody, RobotModel and RobotCell

GH SceneObject for RigidBody, RobotModel and RobotCell #380

Workflow file for this run

name: ironpython
on:
push:
branches:
- main
- wip
pull_request:
jobs:
build:
name: windows-ironpython
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: "Set up CPython 3.9"
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install CPython dependencies"
run: |
python -m pip install --upgrade pip
- name: "Install COMPAS Fab on CPython First"
run: |
pip install --no-cache-dir .
- name: Install Ironpython and ironpython-pytest
run: |
echo "Installing IronPython..."
choco install ironpython --version=2.7.8.1
echo "Downloading ironpython-pytest..."
curl -o ironpython-pytest.tar.gz -LJO https://pypi.debian.net/ironpython-pytest/latest
echo "Ensure pip on IronPython and install pytest..."
ipy -X:Frames -m ensurepip
ipy -X:Frames -m pip install --no-deps ironpython-pytest.tar.gz
- uses: NuGet/[email protected]
- name: Test import compas_fab
run: |
$Env:IRONPYTHONPATH = python -c "import sysconfig; print(sysconfig.get_path('purelib'))"
echo "Setting IRONPYTHONPATH to $Env:IRONPYTHONPATH"
echo "Testing import of compas_fab..."
ipy -m compas_fab
- name: Run ipy tests
run: |
$Env:IRONPYTHONPATH = python -c "import sysconfig; print(sysconfig.get_path('purelib'))"
echo "Setting IRONPYTHONPATH to $Env:IRONPYTHONPATH"
echo "Running tests..."
ipy tests/ipy_test_runner.py
- uses: compas-dev/compas-actions.ghpython_components@v5
with:
source: src/compas_fab/ghpython/components
target: src/compas_fab/ghpython/components/ghuser