Skip to content

Commit b221df1

Browse files
author
Roberto Sora
committed
add conditional step to test pipeline to overcome win VM behaviour in e2e pytests
1 parent 730c1f2 commit b221df1

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Diff for: .github/workflows/test.yaml

+7-4
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,18 @@ jobs:
5757
python-version: '3.x'
5858
architecture: 'x64'
5959

60-
- name: Run integration tests
61-
# Since windows VM do not handle well tmpdirs,
60+
- name: Run integration tests on windows-2019
61+
# Since GH windows VM do not handle well tmpdirs,
6262
# we create the pytest temp folder in current dir
6363
if: matrix.operating-system == 'windows-2019'
64+
env:
65+
PYTEST_DEBUG_TEMPROOT: '.pytest-tmp-dir'
6466
run: |
67+
if not exist %PYTEST_DEBUG_TEMPROOT% mkdir %PYTEST_DEBUG_TEMPROOT%
6568
pip install -r test/requirements.txt
6669
task test-integration
67-
env:
68-
PYTEST_DEBUG_TEMPROOT: '.pytest-tmp-dir'
70+
rmdir %PYTEST_DEBUG_TEMPROOT% /Q /S
71+
shell: cmd
6972

7073
- name: Run integration tests
7174
if: matrix.operating-system != 'windows-2019'

0 commit comments

Comments
 (0)