Skip to content

Add pyproject.toml info #450

Add pyproject.toml info

Add pyproject.toml info #450

Workflow file for this run

name: ironpython
on:
push:
branches:
- main
- LTS-main-1.x
pull_request:
branches:
- main
- LTS-main-1.x
jobs:
build:
name: windows-ironpython
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
shell: cmd
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/latest
echo "Downloading roslibpy..."
curl -o roslibpy.tar.gz -LJO https://pypi.debian.net/roslibpy/roslibpy-1.8.1.tar.gz
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 "Installing ironpython-pytest..."
ipy -X:Frames -m pip install --no-deps ironpython-pytest.tar.gz
echo "Installing roslibpy..."
ipy -X:Frames -m pip install --no-deps roslibpy.tar.gz
rem untar and rename, these cannot be installed using ironpip because they not longer have a setup.py
tar -xf compas.tar.gz && for /d %%i in (compas-*) do ren "%%i" compas
tar -xf compas_robots.tar.gz && for /d %%i in (compas_robots-*) do ren "%%i" compas_robots
- uses: NuGet/setup-nuget@v1.0.5
- uses: compas-dev/compas-actions.ghpython_components@v5
with:
source: src/compas_fab/ghpython/components
target: src/compas_fab/ghpython/components/ghuser
- name: Test import
shell: cmd
run: |
echo "Testing import of compas_fab..."
ipy -m compas_fab
env:
IRONPYTHONPATH: ./src;./compas/src;./compas_robots/src
- name: Run tests
shell: cmd
run: |
echo "Running tests..."
ipy tests/ipy_test_runner.py
env:
IRONPYTHONPATH: ./src;./compas/src;./compas_robots/src