generated from specklesystems/speckle_automate_python_example
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replaced by content of TypeScript template
- Loading branch information
Showing
24 changed files
with
3,632 additions
and
2,229 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,27 +12,21 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/setup-python@v5 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
python-version: '3.11' | ||
- name: Install and configure Poetry | ||
uses: snok/install-poetry@v1 | ||
with: | ||
version: 1.3.2 | ||
virtualenvs-create: false | ||
virtualenvs-in-project: false | ||
installer-parallel: true | ||
node-version: '18.x' | ||
- name: Restore dependencies | ||
run: poetry install --no-root | ||
run: npm ci | ||
- name: Extract functionInputSchema | ||
id: extract_schema | ||
run: | | ||
python main.py generate_schema ${HOME}/${{ env.FUNCTION_SCHEMA_FILE_NAME }} | ||
npm run generateSchema ${HOME}/${{ env.FUNCTION_SCHEMA_FILE_NAME }} | ||
- 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.7.2 | ||
with: | ||
speckle_automate_url: ${{ env.SPECKLE_AUTOMATE_URL || 'https://automate.speckle.dev' }} | ||
speckle_automate_url: 'https://automate.speckle.dev' | ||
speckle_token: ${{ secrets.SPECKLE_FUNCTION_TOKEN }} | ||
speckle_function_id: ${{ secrets.SPECKLE_FUNCTION_ID }} | ||
speckle_function_input_schema_file_path: ${{ env.FUNCTION_SCHEMA_FILE_NAME }} | ||
speckle_function_command: 'python -u main.py run' | ||
speckle_function_command: 'node index.js' |
Oops, something went wrong.