Update gpu_unit_tests_linux.yml
@@ -6,31 +6,40 @@ pr:
- master
- staging
+#Any commit to this branch will trigger the build.
+trigger:
+- staging
+- master
+
+jobs:
+- job: gpu_unit_tests_linux
+ timeoutInMinutes: 10 # how long to run the job before automatically cancelling
pool:
- name: "nlptestmachine"
+ name: nlpagentpool
steps:
-
- bash: |
echo "##vso[task.prependpath]/data/anaconda/bin"
displayName: Add Conda to PATH
-- bash: |
- python tools/generate_conda_file.py --gpu
- conda env create -n nlp_gpu -f nlp_gpu.yaml
- displayName: 'Creating Conda Environment with dependencies'
+# Uncomment if needed
+# - bash: |
+# python tools/generate_conda_file.py --gpu
+# conda env create -n nlp_gpu -f nlp_gpu.yaml
+# displayName: 'Creating Conda Environment with dependencies'
- bash: |
source activate nlp_gpu
pytest tests/unit -m "not notebooks and gpu" --junitxml=junit/test-unitttest.xml
displayName: 'Run Unit tests'
-- bash: |
- echo Remove Conda Environment
- conda remove -n nlp_gpu --all -q --force -y
- echo Done Cleanup
- displayName: 'Cleanup Task'
- condition: always()
+# Uncomment if needed
+# - bash: |
+# echo Remove Conda Environment
+# conda remove -n nlp_gpu --all -q --force -y
+# echo Done Cleanup
+# displayName: 'Cleanup Task'
+# condition: always()
- task: PublishTestResults@2
inputs:
