18
18
inputs :
19
19
win_installer_link :
20
20
description : ' The link to the Windows installer (win64) for the Fx under test'
21
- required : true
21
+ required : false
22
22
type : string
23
23
mac_installer_link :
24
24
description : ' The link to the macOS installer for the Fx under test'
25
- required : true
25
+ required : false
26
26
type : string
27
27
linux_tarball_link :
28
28
description : ' The link to the Linux tarball (linux-x86_64) for the Fx under test'
29
- required : true
29
+ required : false
30
30
type : string
31
31
env :
32
32
FX_CHANNEL : ${{ inputs.channel }}
37
37
38
38
jobs :
39
39
Smoke-Windows :
40
- if : ${{ inputs.job_to_run == 'Smoke-Windows' || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }}
40
+ if : ${{ inputs.job_to_run == 'Smoke-Windows' || github.event_name == 'pull_request' || inputs.win_installer_link }}
41
41
runs-on : windows-latest
42
42
steps :
43
43
- name : Create app token
@@ -146,7 +146,7 @@ jobs:
146
146
name : artifacts-win
147
147
path : artifacts-win
148
148
Smoke-MacOS :
149
- if : ${{ inputs.job_to_run == 'Smoke-MacOS' || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }}
149
+ if : ${{ inputs.job_to_run == 'Smoke-MacOS' || github.event_name == 'pull_request' || inputs.mac_installer_link }}
150
150
runs-on : macos-latest
151
151
steps :
152
152
- name : Create app token
@@ -220,7 +220,7 @@ jobs:
220
220
name : artifacts-mac
221
221
path : artifacts-mac
222
222
Smoke-Linux :
223
- if : ${{ github.event_name == 'workflow_dispatch' }}
223
+ if : ${{ inputs.linux_tarball_link }}
224
224
runs-on : ubuntu-latest
225
225
steps :
226
226
- name : Create app token
@@ -249,8 +249,8 @@ jobs:
249
249
run : |
250
250
echo "MANUAL='true'" >> "$GITHUB_ENV";
251
251
echo "Running smoke tests on supplied executable";
252
+ sudo apt install gnome-screenshot
252
253
uname -m;
253
- sudo apt install xvfb;
254
254
mkdir -p artifacts;
255
255
pip3 install 'pipenv==2023.11.15';
256
256
pip3 install 'ruff>=0.4.8,<0.5';
@@ -267,7 +267,8 @@ jobs:
267
267
run : |
268
268
"$FX_EXECUTABLE" --version
269
269
pipenv run python choose_ci_set.py
270
- Xvfb :99 & DISPLAY=:99 pipenv run pytest --fx-executable="$FX_EXECUTABLE" -n 4 $(cat selected_tests) || TEST_EXIT_CODE=$?
270
+ Xvfb :99 '1600x1200x24' > ~/artifacts/xvfb/xvfb.log 2>&1
271
+ DISPLAY=:99 pipenv run pytest --fx-executable="$FX_EXECUTABLE" -n 4 $(cat selected_tests) || TEST_EXIT_CODE=$?
271
272
exit $TEST_EXIT_CODE
272
273
- name : Run Smoke Tests in Ubuntu (Headed)
273
274
if : steps.setup.conclusion == 'success' && always()
@@ -276,7 +277,7 @@ jobs:
276
277
run : |
277
278
mv ./ci_pyproject_headed.toml ./pyproject.toml;
278
279
pipenv run python choose_ci_set.py
279
- Xvfb :99 & DISPLAY=:99 pipenv run pytest --fx-executable="$FX_EXECUTABLE" $(cat selected_tests) || TEST_EXIT_CODE=$?
280
+ DISPLAY=:99 pipenv run pytest --fx-executable="$FX_EXECUTABLE" $(cat selected_tests) || TEST_EXIT_CODE=$?
280
281
exit $TEST_EXIT_CODE
281
282
282
283
Use-Artifacts :
0 commit comments