Skip to content

Commit 3875f19

Browse files
committed
github: (may be reverted after merge) ensures that cypress tests on master work in PR
1 parent 7b5a547 commit 3875f19

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/process-changes.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,26 @@ jobs:
6464
run: |
6565
git checkout PR-HEAD -- ./cypress
6666
67+
- name: Check file existence
68+
id: check_files
69+
run: |
70+
if test "py/visdom/server.py"; then
71+
echo '::set-output name=file_exists::true'
72+
else
73+
echo '::set-output name=file_exists::false'
74+
fi
75+
76+
- name: Cypress test:init
77+
if: steps.check_files.outputs.file_exists == 'true'
78+
uses: cypress-io/github-action@v2
79+
with:
80+
install: false
81+
start: python3 py/visdom/server.py -port 8098 -env_path /tmp
82+
wait-on: 'http://localhost:8098'
83+
spec: cypress/integration/*.init.js
6784
- name: Cypress test:init
6885
uses: cypress-io/github-action@v2
86+
if: steps.check_files.outputs.file_exists != 'true'
6987
with:
7088
install: false
7189
start: python3 py/visdom/server -port 8098 -env_path /tmp

0 commit comments

Comments
 (0)