Skip to content

Commit 8fb0881

Browse files
author
Roberto Sora
committed
create local tmpdir only for windows-2019 VM
1 parent 865b868 commit 8fb0881

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/test.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,17 @@ jobs:
5858
architecture: 'x64'
5959

6060
- name: Run integration tests
61+
# Since windows VM do not handle well tmpdirs,
62+
# we create the pytest temp folder in current dir
63+
if: matrix.operating-system == 'windows-2019'
64+
run: |
65+
pip install -r test/requirements.txt
66+
task test-integration
67+
env:
68+
PYTEST_DEBUG_TEMPROOT: '.pytest-tmp-dir'
69+
70+
- name: Run integration tests
71+
if: matrix.operating-system != 'windows-2019'
6172
run: |
6273
pip install -r test/requirements.txt
6374
task test-integration

Taskfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ tasks:
2727
desc: Run integration tests only
2828
cmds:
2929
- go test -run Integration {{ default "-v" .GOFLAGS }} -coverprofile=coverage_integ.txt {{ default .DEFAULT_TARGETS .TARGETS }} {{.TEST_LDFLAGS}}
30-
- pytest --basetemp=.pytest-tmp-dir test
30+
- pytest test
3131

3232
test-legacy:
3333
desc: Run tests for the `legacy` package

0 commit comments

Comments
 (0)