compas 242 for ipy #357
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ironpython | |
on: | |
push: | |
branches: | |
- main | |
- wip | |
pull_request: | |
jobs: | |
build: | |
name: windows-ironpython | |
runs-on: windows-latest | |
env: | |
COMPAS_URL: https://pypi.debian.net/COMPAS/COMPAS-2.4.2.tar.gz | |
COMPAS_ROBOTS_URL: https://github.com/compas-dev/compas_robots/archive/a40673d.tar.gz | |
IRONPYTHON_PYTEST_URL: https://pypi.debian.net/ironpython-pytest/latest | |
ROSLIBPY_URL: https://pypi.debian.net/roslibpy/latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
echo "Installing IronPython..." | |
choco install ironpython --version=2.7.8.1 | |
echo "Downloading ironpython-pytest..." | |
curl -o ironpython-pytest.tar.gz -LJO ${{ env.IRONPYTHON_PYTEST_URL }} | |
echo "Downloading COMPAS..." | |
curl -o compas.tar.gz -LJO ${{ env.COMPAS_URL }} | |
echo "Downloading roslibpy..." | |
curl -o roslibpy.tar.gz -LJO ${{ env.ROSLIBPY_URL }} | |
echo "Downloading compas_robots..." | |
curl -o compas_robots.tar.gz -LJO ${{ env.COMPAS_ROBOTS_URL }} | |
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 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 | |
echo "Installing compas_robots..." | |
ipy -X:Frames -m pip install --no-deps compas_robots.tar.gz | |
- uses: NuGet/[email protected] | |
- 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 | |
run: | | |
echo "Testing import of compas_fab..." | |
ipy -m compas_fab | |
env: | |
IRONPYTHONPATH: ./src | |
- name: Run tests | |
run: | | |
echo "Running tests..." | |
ipy tests/ipy_test_runner.py | |
env: | |
IRONPYTHONPATH: ./src |