Skip to content

Commit

Permalink
Use AGENT_TOOLSDIRECTORY for isolation on self-hosted
Browse files Browse the repository at this point in the history
  • Loading branch information
vfdev-5 committed Feb 22, 2023
1 parent fdd1eea commit 77e32fa
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/gpu-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,20 @@ jobs:
fail-fast: true
matrix:
pytorch-channel: [pytorch, pytorch-nightly]
env:
AGENT_TOOLSDIRECTORY: /tmp/python

steps:
- uses: actions/checkout@v3

- name: Clean python tool path
run: |
rm -rf ${AGENT_TOOLSDIRECTORY}
- uses: actions/setup-python@v4
with:
python-version: 3.9

- run: pip install pip wheel setuptools -Uqq

- name: Install PyTorch
# https://pytorch.org/get-started/locally/
if: ${{ matrix.pytorch-channel == 'pytorch' }}
Expand All @@ -58,7 +63,7 @@ jobs:
- name: Install dependencies
run: |
pip install -r requirements-dev.txt
python setup.py install
pip install -e .
- name: Run 1 Node 2 GPUs Unit Tests
run: |
Expand Down

0 comments on commit 77e32fa

Please sign in to comment.