From c0a54cd3a94c3ec50fd2d8eae09e4176bcbcdb23 Mon Sep 17 00:00:00 2001 From: Victor LEUNG Date: Thu, 26 Sep 2024 09:18:19 +0800 Subject: [PATCH] Trying out workflow from compas --- .github/workflows/ironpython.yml | 39 ++++++++++++++++++++++++-------- 1 file changed, 30 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ironpython.yml b/.github/workflows/ironpython.yml index d7c50b7bf..cf556e665 100644 --- a/.github/workflows/ironpython.yml +++ b/.github/workflows/ironpython.yml @@ -13,7 +13,17 @@ jobs: runs-on: windows-latest steps: - uses: actions/checkout@v2 - - name: Install dependencies + - 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 dependencies run: | echo "Installing IronPython..." choco install ironpython --version=2.7.8.1 @@ -21,8 +31,19 @@ jobs: echo "Downloading ironpython-pytest..." curl -o ironpython-pytest.tar.gz -LJO https://pypi.debian.net/ironpython-pytest/latest - echo "Downloading COMPAS..." - curl -o compas.tar.gz -LJO https://pypi.debian.net/compas/compas-2.4.2.tar.gz + 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 + - name: Install other dependencies in IPY + 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 "Downloading COMPAS..." + # curl -o compas.tar.gz -LJO https://pypi.debian.net/compas/compas-2.4.2.tar.gz echo "Downloading roslibpy..." curl -o roslibpy.tar.gz -LJO https://pypi.debian.net/roslibpy/latest @@ -30,14 +51,14 @@ jobs: echo "Downloading compas_robots..." curl -o compas_robots.tar.gz -LJO https://pypi.debian.net/compas_robots/latest - echo "Setting up IronPython environment..." - ipy -X:Frames -m ensurepip + # echo "Setting up IronPython environment..." + # ipy -X:Frames -m ensurepip - echo "Installing ironpython-pytest..." - ipy -X:Frames -m pip install --no-deps ironpython-pytest.tar.gz + # echo "Installing ironpython-pytest..." + # ipy -X:Frames -m pip install --no-deps ironpython-pytest.tar.gz - echo "Installing COMPAS..." - ipy -X:Frames -m pip install --no-deps compas.tar.gz + # echo "Installing COMPAS..." + # ipy -X:Frames -m pip install --no-deps compas.tar.gz echo "Installing roslibpy..." ipy -X:Frames -m pip install --no-deps roslibpy.tar.gz