Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 32c30bc59b | |||
| 9b12d06eee | |||
| 66f5194007 | |||
| d7d61ba694 | |||
| 268969d7f2 | |||
| 0e0b8e9f04 | |||
| f3bb2f4d6a |
+12
-10
@@ -11,27 +11,29 @@ jobs:
|
|||||||
FUNCTION_SCHEMA_FILE_NAME: functionSchema.json
|
FUNCTION_SCHEMA_FILE_NAME: functionSchema.json
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4.1.6
|
- uses: actions/checkout@v4.1.7
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
- name: Install and configure Poetry
|
- name: Install poetry
|
||||||
uses: snok/install-poetry@v1
|
run: |
|
||||||
with:
|
pip install poetry==1.8.4 &&
|
||||||
version: 1.3.2
|
poetry config virtualenvs.create false &&
|
||||||
virtualenvs-create: false
|
poetry config virtualenvs.in-project false &&
|
||||||
virtualenvs-in-project: false
|
poetry config installer.parallel true
|
||||||
installer-parallel: true
|
|
||||||
- name: Restore dependencies
|
- name: Restore dependencies
|
||||||
run: poetry install --no-root
|
run: poetry install --no-root
|
||||||
- name: Extract functionInputSchema
|
- name: Extract functionInputSchema
|
||||||
id: extract_schema
|
id: extract_schema
|
||||||
run: |
|
run: |
|
||||||
python main.py generate_schema ${HOME}/${{ env.FUNCTION_SCHEMA_FILE_NAME }}
|
python main.py generate_schema "${HOME}/${{ env.FUNCTION_SCHEMA_FILE_NAME }}"
|
||||||
|
echo "Checking if functionSchema.json exists after generation..."
|
||||||
|
ls -lah "${HOME}/${{ env.FUNCTION_SCHEMA_FILE_NAME }}"
|
||||||
|
|
||||||
- name: Speckle Automate Function - Build and Publish
|
- name: Speckle Automate Function - Build and Publish
|
||||||
uses: specklesystems/speckle-automate-github-composite-action@0.8.1
|
uses: specklesystems/speckle-automate-github-composite-action@0.8.1
|
||||||
with:
|
with:
|
||||||
speckle_automate_url: ${{ env.SPECKLE_AUTOMATE_URL || vars.SPECKLE_AUTOMATE_URL || 'https://automate.speckle.dev' }}
|
speckle_automate_url: ${{ env.SPECKLE_AUTOMATE_URL || vars.SPECKLE_AUTOMATE_URL || 'https://automate.speckle.dev' }}
|
||||||
speckle_token: ${{ secrets.SPECKLE_FUNCTION_TOKEN }}
|
speckle_token: ${{ secrets.SPECKLE_FUNCTION_TOKEN }}
|
||||||
speckle_function_id: ${{ secrets.SPECKLE_FUNCTION_ID }}
|
speckle_function_id: ${{ secrets.SPECKLE_FUNCTION_ID }}
|
||||||
speckle_function_input_schema_file_path: ${{ env.FUNCTION_SCHEMA_FILE_NAME }}
|
speckle_function_input_schema_file_path: ${{ env.FUNCTION_SCHEMA_FILE_NAME }}
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
FROM python:3.11-slim
|
FROM python:3.11-slim
|
||||||
|
|
||||||
# We install poetry to generate a list of dependencies which will be required by our application
|
# We install poetry to generate a list of dependencies which will be required by our application
|
||||||
RUN pip install poetry
|
RUN pip install poetry==1.8.4
|
||||||
|
|
||||||
# We set the working directory to be the /home/speckle directory; all of our files will be copied here.
|
# We set the working directory to be the /home/speckle directory; all of our files will be copied here.
|
||||||
WORKDIR /home/speckle
|
WORKDIR /home/speckle
|
||||||
|
|||||||
Generated
+657
-513
File diff suppressed because it is too large
Load Diff
+2
-1
@@ -4,10 +4,11 @@ version = "0.1.0"
|
|||||||
description = "Example function for Speckle Automate using specklepy"
|
description = "Example function for Speckle Automate using specklepy"
|
||||||
authors = ["Gergő Jedlicska <gergo@jedlicska.com>"]
|
authors = ["Gergő Jedlicska <gergo@jedlicska.com>"]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
package-mode = false
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = "^3.11"
|
python = "^3.11"
|
||||||
specklepy = "^2.19.5"
|
specklepy = "^2.21.0"
|
||||||
|
|
||||||
[tool.poetry.group.dev.dependencies]
|
[tool.poetry.group.dev.dependencies]
|
||||||
black = "^23.3.0"
|
black = "^23.3.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user