Skip to content

Commit 0c6ba76

Browse files
Make unit tests use a temp dir instead of /home/ec2-user (#126)
Summary: As title. Pull Request resolved: #126 Reviewed By: PaliC Differential Revision: D38633472 Pulled By: anirbanr-fb-r2p fbshipit-source-id: a027d7fbd3088ac8efdd7ab318ec918ba0e1f4d2
1 parent bf685e6 commit 0c6ba76

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/runtime_nightly.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ jobs:
2323
- name: Setup conda
2424
run: |
2525
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ${RUNNER_TEMP}/miniconda.sh
26-
bash ${RUNNER_TEMP}/miniconda.sh -b -p $HOME/miniconda
26+
bash ${RUNNER_TEMP}/miniconda.sh -b -p ${RUNNER_TEMP}/miniconda
2727
2828
- name: setup Path
2929
run: |
30-
echo "/home/ec2-user/miniconda/bin" >> $GITHUB_PATH
31-
echo "CONDA=/home/ec2-user/miniconda" >> $GITHUB_PATH
30+
echo "${RUNNER_TEMP}/miniconda/bin" >> $GITHUB_PATH
31+
echo "CONDA=${RUNNER_TEMP}/miniconda" >> $GITHUB_PATH
3232
3333
- name: Checkout MultiPy
3434
uses: actions/checkout@v2

.github/workflows/runtime_tests.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ jobs:
2626
- name: Setup conda
2727
run: |
2828
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ${RUNNER_TEMP}/miniconda.sh
29-
bash ${RUNNER_TEMP}/miniconda.sh -b -p $HOME/miniconda
29+
bash ${RUNNER_TEMP}/miniconda.sh -b -p ${RUNNER_TEMP}/miniconda
3030
3131
- name: setup Path
3232
run: |
33-
echo "/home/ec2-user/miniconda/bin" >> $GITHUB_PATH
34-
echo "CONDA=/home/ec2-user/miniconda" >> $GITHUB_PATH
33+
echo "${RUNNER_TEMP}/miniconda/bin" >> $GITHUB_PATH
34+
echo "CONDA=${RUNNER_TEMP}/miniconda" >> $GITHUB_PATH
3535
3636
- name: Checkout MultiPy
3737
uses: actions/checkout@v2

0 commit comments

Comments
 (0)