You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Sets up miniconda in your ${RUNNER_TEMP} environment and gives you the ${CONDA_RUN} environment variable so you don't have to worry about polluting non-empeheral runners anymore
4
+
5
+
inputs:
6
+
python-version:
7
+
description: If set to any value, dont use sudo to clean the workspace
8
+
required: false
9
+
type: string
10
+
default: "3.9"
11
+
miniconda-version:
12
+
description: Miniconda version to install
13
+
required: false
14
+
type: string
15
+
default: "4.12.0"
16
+
environment-file:
17
+
description: Environment file to install dependencies from
18
+
required: false
19
+
type: string
20
+
default: ""
21
+
22
+
runs:
23
+
using: composite
24
+
steps:
25
+
# Use the same trick from https://github.com/marketplace/actions/setup-miniconda
26
+
# to refresh the cache daily. This is kind of optional though
if [ "$AVAIL" -lt "$MINIMUM_AVAILABLE_SPACE_IN_KB" ]; then
140
+
echo "There is only ${AVAIL}KB free space left in $MOUNT, which is less than the minimum requirement of ${MINIMUM_AVAILABLE_SPACE_IN_KB}KB. Please help create an issue to PyTorch Release Engineering via https://github.com/pytorch/test-infra/issues and provide the link to the workflow run."
141
+
exit 1;
142
+
else
143
+
echo "There is ${AVAIL}KB free space left in $MOUNT, continue"
0 commit comments