name: nv-lightning-v100 on: push: branches: - 'master' - 'staging**' paths-ignore: - 'docs/**' pull_request: paths-ignore: - 'docs/**' concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: unit-tests: runs-on: [self-hosted, nvidia, cu111, v100] steps: - uses: actions/checkout@v2 - name: environment run: | nvidia-smi which python python --version which nvcc nvcc --version pip install --upgrade pip pip uninstall --yes torch torchvision pip install torch==1.9.1+cu111 torchvision==0.10.1+cu111 torchaudio==0.9.1 -f https://download.pytorch.org/whl/torch_stable.html python -c "import torch; print('torch:', torch.__version__, torch)" python -c "import torch; print('CUDA available:', torch.cuda.is_available())" - name: Python environment run: | pip list - name: Install deepspeed run: | pip uninstall --yes deepspeed pip install .[dev,autotuning] ds_report - name: PyTorch Lightning Tests run: | if [[ -d ./torch-extensions ]]; then rm -rf ./torch-extensions; fi pip uninstall --yes pytorch-lightning pip install pytorch-lightning pip install "protobuf<4.21.0" cd tests TORCH_EXTENSIONS_DIR=./torch-extensions pytest --color=yes --durations=0 --verbose lightning/