-
Notifications
You must be signed in to change notification settings - Fork 40
50 lines (46 loc) · 1.79 KB
/
ironpython.yml
File metadata and controls
50 lines (46 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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
run: |
choco install ironpython --version=2.7.8.1
curl -o ironpython-pytest.tar.gz -LJO https://pypi.debian.net/ironpython-pytest/latest
curl -o compas.tar.gz -LJO https://pypi.debian.net/COMPAS/latest
curl -o roslibpy.tar.gz -LJO https://pypi.debian.net/roslibpy/latest
curl -o compas_robots.tar.gz -LJO https://pypi.debian.net/compas_robots/latest
ipy -X:Frames -m ensurepip
ipy -X:Frames -m pip install --no-deps ironpython-pytest.tar.gz
ipy -X:Frames -m pip install --no-deps compas.tar.gz
ipy -X:Frames -m pip install --no-deps roslibpy.tar.gz
ipy -X:Frames -m pip install --no-deps compas_robots.tar.gz
# 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
run: |
ipy -m compas_fab
env:
IRONPYTHONPATH: ./src;./compas/src;./compas_robots/src
- name: Run tests
run: |
ipy tests/ipy_test_runner.py
env:
IRONPYTHONPATH: ./src;./compas/src;./compas_robots/src