Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

azure-pipelines.yml 2.3 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
  1. # Python package
  2. # Create and test a Python package on multiple Python versions.
  3. # Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more:
  4. # https://docs.microsoft.com/en-us/azure/devops/pipelines/languages/python?view=vsts
  5. # Capabilities and limitations:
  6. # https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=vsts&tabs=yaml#capabilities-and-limitations
  7. # - Provide at least 10 GB of storage for your source and build outputs.
  8. # - Can run jobs for up to 360 minutes (6 hours).
  9. # Notes on pipeline definitions:
  10. #
  11. # the number after @ in task definition indicates the azure internal version of the specific task, e.g:
  12. # - task: CondaEnvironment@1
  13. # means use azure's CondaEnvironment's version 1, so need to check the docs for each specific task's desired (usually latest) version. If later 1.2 is released then use:
  14. # - task: CondaEnvironment@1.2
  15. # instead
  16. #
  17. # job name must match r'\w+' (no '-', but '_' ok)
  18. #
  19. # Build environments: Available vmImage values: 'Ubuntu-16.04', 'macOS-10.13', 'VS2017-Win2016'
  20. #
  21. jobs:
  22. ##################
  23. ### nbstripout ###
  24. ##################
  25. - job: 'nbstripout_config'
  26. pool:
  27. vmImage: 'Ubuntu-16.04'
  28. steps:
  29. - task: UsePythonVersion@0
  30. inputs:
  31. versionSpec: '3.6'
  32. architecture: 'x64'
  33. # Install nbformat
  34. - script: |
  35. pip install nbformat
  36. displayName: 'Install nbformat'
  37. continueOnError: false
  38. # check that notebooks are stripped out. if they aren't that means the committer doesn't have the correct configuration for the stripout filter.
  39. - script: |
  40. echo "Trying to load all notebooks"
  41. tools/read-nbs
  42. echo "Check we are starting with clean git checkout"
  43. if [ -n "$(git status -uno -s)" ]; then echo "git status is not clean"; false; fi
  44. echo "Trying to strip out notebooks"
  45. tools/fastai-nbstripout -d nbs/dl1/*ipynb
  46. echo "Check that strip out was unnecessary"
  47. git status -s # display the status to see which nbs need cleaning up
  48. if [ -n "$(git status -uno -s)" ]; then echo -e "!!! Detected unstripped out notebooks\n!!!Remember to run tools/run-after-git-clone"; false; fi
  49. displayName: 'Detect unstripped out notebook commits'
  50. failOnStderr: true
  51. continueOnError: false
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...