ci.yml 894 B

123456789101112131415161718192021222324252627282930
  1. name: Continuous integration
  2. on:
  3. push:
  4. pull_request:
  5. jobs:
  6. build:
  7. runs-on: ubuntu-20.04
  8. steps:
  9. - name: Checkout
  10. uses: actions/checkout@v2
  11. - name: Install dependencies
  12. run: |
  13. # Install tools used by `_tools/format.sh`.
  14. sudo apt-get -qq update
  15. sudo apt-get -qq install dos2unix recode
  16. sudo pip3 install -r requirements.txt
  17. sudo pip3 install codespell
  18. - name: Linter checks
  19. run: |
  20. bash _tools/format.sh
  21. codespell -I _tools/codespell-ignore.txt -x _tools/codespell-ignore-lines.txt {about,community,development,getting_started,tutorials}/**/*.rst
  22. # Use dummy builder to improve performance as we don't need the generated HTML in this workflow.
  23. - name: Sphinx build
  24. run: |
  25. sphinx-build --color -b dummy -d _build/doctrees -W . _build/html