Skip to content

Commit f3b56b6

Browse files
authored
Merge pull request #5 from ansys/add-script-option
add script option
2 parents f18d85b + 27b20e4 commit f3b56b6

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
name: Build package
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v4
2121
- name: Setup Python
22-
uses: actions/setup-python@v2
22+
uses: actions/setup-python@v5
2323
with:
2424
python-version: ${{ env.MAIN_PYTHON_VERSION }}
2525
- name: Install build requirements
@@ -37,7 +37,7 @@ jobs:
3737
python -c "import ansys.api.mechanical; print('Successfully imported ansys.api.mechanical')"
3838
python -c "from ansys.api.mechanical import __version__; print(__version__)"
3939
- name: Upload packages
40-
uses: actions/upload-artifact@v2
40+
uses: actions/upload-artifact@v4
4141
with:
4242
name: ansys-api-mechanical-packages
4343
path: dist/
@@ -49,11 +49,11 @@ jobs:
4949
runs-on: ubuntu-latest
5050
steps:
5151
- name: Set up Python
52-
uses: actions/setup-python@v2
52+
uses: actions/setup-python@v5
5353
with:
5454
python-version: ${{ env.MAIN_PYTHON_VERSION }}
5555

56-
- uses: actions/download-artifact@v2
56+
- uses: actions/download-artifact@v4
5757

5858
- name: Display structure of downloaded files
5959
run: ls -R
@@ -68,7 +68,7 @@ jobs:
6868
TWINE_PASSWORD: ${{ secrets.ANSYS_API_MECHANICAL_PYPI_TOKEN }}
6969

7070
- name: Release
71-
uses: softprops/action-gh-release@v1
71+
uses: softprops/action-gh-release@v2
7272
with:
7373
generate_release_notes: true
7474
files: |

src/ansys/api/mechanical/v0/mechanical.proto

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ enum LoggerSeverity
1616
}
1717

1818
// Send RunScript message to run jscript / python script code.
19-
message RunScriptRequest
19+
message RunScriptRequest
2020
{
2121
// script_code can be jscript or python script
2222
string script_code = 1;
@@ -28,7 +28,12 @@ message RunScriptRequest
2828
LoggerSeverity logger_severity = 3;
2929

3030
// progress interval at which to send the log_info (in milli seconds)
31-
int32 progress_interval = 4;
31+
int32 progress_interval = 4;
32+
33+
// 1 - new behavior
34+
// 0 - old behavior
35+
// other values - reserved
36+
int32 python_behavior = 5;
3237
}
3338

3439
// Receive RunScriptResponse when you run jscript or python script code.

0 commit comments

Comments
 (0)