Skip to content

Commit

Permalink
Activate Github actions workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalocasas committed Jun 23, 2024
1 parent a34cbdd commit 0668758
Show file tree
Hide file tree
Showing 5 changed files with 98 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python: ['3.8', '3.9', '3.10']
python: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: compas-dev/compas-actions.build@v3
- uses: compas-dev/compas-actions.build@v4
with:
python: ${{ matrix.python }}
invoke_lint: true
invoke_test: true
python: ${{ matrix.python }}
20 changes: 20 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: docs

on:
push:
branches:
- main
tags:
- 'v*'
pull_request_review:
types: [submitted]

jobs:
docs:
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved')
runs-on: ubuntu-latest
steps:
- uses: compas-dev/compas-actions.docs@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
doc_url: https://gramaziokohler.github.io/compas_xr
19 changes: 0 additions & 19 deletions .github/workflows/docs.yml.inactive

This file was deleted.

75 changes: 75 additions & 0 deletions .github/workflows/ironpython.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: ironpython

on:
push:
branches:
- main
pull_request:

jobs:
build:
name: windows-ironpython
runs-on: windows-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 https://pypi.debian.net/ironpython-pytest/latest
echo "Downloading COMPAS..."
curl -o compas.tar.gz -LJO https://pypi.debian.net/COMPAS/COMPAS-2.1.0.tar.gz
echo "Downloading compas_robots..."
curl -o compas_robots.tar.gz -LJO https://pypi.debian.net/compas_robots/latest
echo "Downloading compas_fab..."
curl -o compas_fab.tar.gz -LJO https://pypi.debian.net/compas_fab/latest
echo "Downloading compas_eve..."
curl -o compas_eve.tar.gz -LJO https://pypi.debian.net/compas_eve/latest
echo "Downloading compas_timber..."
curl -o compas_timber.tar.gz -LJO https://pypi.debian.net/compas_timber/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 COMPAS..."
ipy -X:Frames -m pip install --no-deps compas.tar.gz
echo "Installing compas_robots..."
ipy -X:Frames -m pip install --no-deps compas_robots.tar.gz
echo "Installing compas_fab..."
ipy -X:Frames -m pip install --no-deps compas_fab.tar.gz
echo "Installing compas_eve..."
ipy -X:Frames -m pip install --no-deps compas_eve.tar.gz
echo "Installing compas_timber..."
ipy -X:Frames -m pip install --no-deps compas_timber.tar.gz
- uses: NuGet/setup-nuget@v1.0.5
- uses: compas-dev/compas-actions.ghpython_components@v5
with:
source: src/compas_xr/ghpython/components
target: src/compas_xr/ghpython/components/ghuser
- name: Test import
run: |
echo "Testing import of compas_xr..."
ipy -m compas_xr
env:
IRONPYTHONPATH: ./src
- name: Run tests
run: |
echo "Running tests..."
ipy tests/ipy_test_runner.py
env:
IRONPYTHONPATH: ./src
File renamed without changes.

0 comments on commit 0668758

Please sign in to comment.