@@ -87,24 +87,20 @@ jobs:
87
87
run : |
88
88
import json
89
89
from os import environ as env
90
-
91
90
def _display_on_run_dashboard(msg):
92
91
# workflow warnings are displayed on the workflow run dashboard,
93
92
# so we use this as a way to display a short summary of why this workflow is being run
94
93
# without having to dig in each job's log output
95
94
print(f'::warning ::{msg}')
96
95
def _set_output(name, val):
97
96
print(f'::set-output name={name}::{val}')
98
-
99
97
event_name = env["GITHUB_EVENT_NAME"]
100
98
event_action = env["_GITHUB_EVENT_ACTION"]
101
99
is_pr = 'pull_request' in event_name.lower()
102
100
# if the event is not a PR event, the "is_pr_approved" env var will be set to an empty string,
103
101
# which cannot be parsed as valid json
104
102
is_pr_approved = json.loads(env.get("is_pr_approved") or "null")
105
-
106
103
workflow_trigger = 'undetermined'
107
-
108
104
if is_pr:
109
105
if event_action == 'labeled':
110
106
workflow_trigger = 'user_dispatch'
@@ -114,11 +110,9 @@ jobs:
114
110
workflow_trigger = 'unapproved_pr'
115
111
else:
116
112
workflow_trigger = 'not_pr'
117
-
118
113
msg = f'{workflow_trigger=} event/action={event_name}/{event_action or "N/A"} is_pr_approved={is_pr_approved or "N/A"}'
119
114
_display_on_run_dashboard(msg)
120
115
_set_output('workflow-trigger', workflow_trigger)
121
-
122
116
pytest :
123
117
name : pytest (py${{ matrix.python-version }}/${{ matrix.os }}/integration)
124
118
runs-on : ${{ matrix.runner-image }}
@@ -132,7 +126,7 @@ jobs:
132
126
strategy :
133
127
fail-fast : false
134
128
matrix :
135
- python-version : ['3.9', '3.10', '3.11', '3.12']
129
+ python-version : ['3.9', '3.10', '3.11', '3.12', '3.13' ]
136
130
os :
137
131
- linux
138
132
- win64
@@ -170,7 +164,7 @@ jobs:
170
164
strategy :
171
165
fail-fast : false
172
166
matrix :
173
- python-version : ['3.9', '3.10', '3.11', '3.12']
167
+ python-version : ['3.9', '3.10', '3.11', '3.12', '3.13' ]
174
168
os :
175
169
- linux
176
170
- win64
@@ -259,4 +253,4 @@ jobs:
259
253
run : |
260
254
pushd "$(mktemp -d)"
261
255
pip install pytest
262
- pytest --pyargs idaes -W ignore -rs
256
+ pytest --pyargs idaes -W ignore -rs
0 commit comments