Set TMPDIR to $RUNNER_TEMP

Sets the TMPDIR environment variable to the value of $RUNNER_TEMP, which
should point to a suitable temp dir for runner operations. On windows
runners, this should be on the same disk volume as the checked out repo
and the root for pytest-salt-factories masters and minions.
This commit is contained in:
Barney Sowood 2025-01-22 12:53:39 +00:00 committed by Daniel Wozniak
parent 76fcc87785
commit 2da58365e9

View file

@ -775,6 +775,7 @@ jobs:
PIP_DISABLE_PIP_VERSION_CHECK: "1"
RAISE_DEPRECATIONS_RUNTIME_ERRORS: "1"
SALT_TRANSPORT: ${{ matrix.transport }}
TMPDIR: ${{ runner.temp }}
run: >
nox --force-color -e ${{ inputs.nox-session }} -- ${{ matrix.tests-chunk }} --
-k "win" --core-tests --slow-tests --suppress-no-test-exit-code
@ -801,6 +802,7 @@ jobs:
PIP_DISABLE_PIP_VERSION_CHECK: "1"
RAISE_DEPRECATIONS_RUNTIME_ERRORS: "1"
SALT_TRANSPORT: ${{ matrix.transport }}
TMPDIR: ${{ runner.temp }}
run: >
nox --force-color -e ${{ inputs.nox-session }} -- ${{ matrix.tests-chunk }} --
-k "win" --suppress-no-test-exit-code
@ -826,6 +828,7 @@ jobs:
PIP_DISABLE_PIP_VERSION_CHECK: "1"
RAISE_DEPRECATIONS_RUNTIME_ERRORS: "1"
SALT_TRANSPORT: ${{ matrix.transport }}
TMPDIR: ${{ runner.temp }}
run: >
nox --force-color -e ${{ inputs.nox-session }} -- ${{ matrix.tests-chunk }} --
-k "win" --suppress-no-test-exit-code --no-fast-tests --slow-tests
@ -851,6 +854,7 @@ jobs:
PIP_DISABLE_PIP_VERSION_CHECK: "1"
RAISE_DEPRECATIONS_RUNTIME_ERRORS: "1"
SALT_TRANSPORT: ${{ matrix.transport }}
TMPDIR: ${{ runner.temp }}
run: >
nox --force-color -e ${{ inputs.nox-session }} -- ${{ matrix.tests-chunk }} --
-k "win" --suppress-no-test-exit-code --no-fast-tests --core-tests
@ -876,6 +880,7 @@ jobs:
PIP_DISABLE_PIP_VERSION_CHECK: "1"
RAISE_DEPRECATIONS_RUNTIME_ERRORS: "1"
SALT_TRANSPORT: ${{ matrix.transport }}
TMPDIR: ${{ runner.temp }}
run: >
nox --force-color -e ${{ inputs.nox-session }} -- ${{ matrix.tests-chunk }} --
-k "win" --suppress-no-test-exit-code --no-fast-tests --flaky-jail
@ -901,6 +906,7 @@ jobs:
PIP_DISABLE_PIP_VERSION_CHECK: "1"
RAISE_DEPRECATIONS_RUNTIME_ERRORS: "1"
SALT_TRANSPORT: ${{ matrix.transport }}
TMPDIR: ${{ runner.temp }}
run: >
nox --force-color -e ${{ inputs.nox-session }} -- ${{ matrix.tests-chunk }} --
--slow-tests --core-tests -k "win" --test-group-count=${{ matrix.test-group-count || 1 }} --test-group=${{ matrix.test-group || 1 }}