diff --git a/.github/workflows/build.yml.inactive b/.github/workflows/build.yml similarity index 81% rename from .github/workflows/build.yml.inactive rename to .github/workflows/build.yml index d9d51248..10e1fa60 100644 --- a/.github/workflows/build.yml.inactive +++ b/.github/workflows/build.yml @@ -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 }} diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 00000000..095b26f7 --- /dev/null +++ b/.github/workflows/docs.yml @@ -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 diff --git a/.github/workflows/docs.yml.inactive b/.github/workflows/docs.yml.inactive deleted file mode 100644 index 7a04c2a7..00000000 --- a/.github/workflows/docs.yml.inactive +++ /dev/null @@ -1,19 +0,0 @@ -name: docs - -on: - push: - branches: - - main - tags: - - 'v*' - pull_request: - branches: - - main - -jobs: - docs: - runs-on: ubuntu-latest - steps: - - uses: compas-dev/compas-actions.docs@v2 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/ironpython.yml b/.github/workflows/ironpython.yml new file mode 100644 index 00000000..a03b3f3b --- /dev/null +++ b/.github/workflows/ironpython.yml @@ -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 diff --git a/.github/workflows/pr-checks.yml.inactive b/.github/workflows/pr-checks.yml similarity index 100% rename from .github/workflows/pr-checks.yml.inactive rename to .github/workflows/pr-checks.yml