-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci: azure * cv * ci * testing * v2 * docs * size * skip
- Loading branch information
Showing
25 changed files
with
329 additions
and
377 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Python package | ||
# Create and test a Python package on multiple Python versions. | ||
# Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more: | ||
# https://docs.microsoft.com/azure/devops/pipelines/languages/python | ||
|
||
trigger: | ||
tags: | ||
include: | ||
- '*' | ||
branches: | ||
include: | ||
- master | ||
- release/* | ||
- refs/tags/* | ||
pr: | ||
- master | ||
- release/* | ||
|
||
jobs: | ||
- job: pytest | ||
# how long to run the job before automatically cancelling | ||
timeoutInMinutes: 45 | ||
# how much time to give 'run always even if cancelled tasks' before stopping them | ||
cancelTimeoutInMinutes: 2 | ||
|
||
pool: gridai-spot-pool | ||
|
||
# ToDo: this need to have installed docker in the base image... | ||
#container: "pytorchlightning/pytorch_lightning:base-cuda-py$[ variables['python.version'] ]-torch1.6" | ||
container: | ||
image: "pytorchlightning/pytorch_lightning:base-cuda-py3.7-torch1.6" | ||
#endpoint: azureContainerRegistryConnection | ||
options: "--runtime=nvidia -e NVIDIA_VISIBLE_DEVICES=all" | ||
|
||
workspace: | ||
clean: all | ||
|
||
steps: | ||
|
||
- bash: | | ||
lspci | egrep 'VGA|3D' | ||
whereis nvidia | ||
nvidia-smi | ||
python --version | ||
pip --version | ||
pip list | ||
displayName: 'Image info & NVIDIA' | ||
- bash: | | ||
python -c "import torch ; mgpu = torch.cuda.device_count() ; assert mgpu >= 2, f'GPU: {mgpu}'" | ||
displayName: 'Sanity check' | ||
- bash: | | ||
# python -m pip install "pip==20.1" | ||
pip install --requirement ./requirements/devel.txt --upgrade-strategy only-if-needed | ||
pip list | ||
displayName: 'Install dependencies' | ||
- bash: | | ||
python -m coverage run --source pl_bolts -m pytest pl_bolts tests -v --durations=30 | ||
displayName: 'Testing' | ||
- bash: | | ||
python -m coverage report | ||
python -m coverage xml | ||
codecov --token=$(CODECOV_TOKEN) --flags=gpu,pytest --name="GPU-coverage" --env=linux,azure | ||
displayName: 'Statistics' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
import gzip | ||
import hashlib | ||
import os | ||
import sys | ||
import shutil | ||
import sys # noqa F401 | ||
import tarfile | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.