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

main.yml 1.2 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
  1. name: CI
  2. on: [push]
  3. jobs:
  4. build:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - uses: actions/checkout@v1
  8. - uses: actions/setup-python@v1
  9. with:
  10. python-version: '3.6'
  11. architecture: 'x64'
  12. - name: Install the library
  13. run: |
  14. pip install nbdev jupyter
  15. pip install -e .
  16. - name: Read all notebooks
  17. run: |
  18. nbdev_read_nbs
  19. - name: Check if all notebooks are cleaned
  20. run: |
  21. echo "Check we are starting with clean git checkout"
  22. if [ -n "$(git status -uno -s)" ]; then echo "git status is not clean"; false; fi
  23. echo "Trying to strip out notebooks"
  24. nbdev_clean_nbs
  25. echo "Check that strip out was unnecessary"
  26. git status -s # display the status to see which nbs need cleaning up
  27. if [ -n "$(git status -uno -s)" ]; then echo -e "!!! Detected unstripped out notebooks\n!!!Remember to run nbdev_install_git_hooks"; false; fi
  28. - name: Check if there is no diff library/notebooks
  29. run: |
  30. if [ -n "$(nbdev_diff_nbs)" ]; then echo -e "!!! Detected difference between the notebooks and the library"; false; fi
  31. - name: Run tests
  32. run: |
  33. nbdev_test_nbs
Tip!

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

Comments

Loading...