Skip to content

Commit

Permalink
Set TMPDIR to $RUNNER_TEMP
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
barneysowood committed Jan 22, 2025
1 parent 76fcc87 commit e8e5eb6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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 }}
Expand Down

0 comments on commit e8e5eb6

Please sign in to comment.