ci.yml 1009 B

12345678910111213141516171819202122232425262728293031323334
  1. name: Continuous integration
  2. on:
  3. push:
  4. pull_request:
  5. concurrency:
  6. group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
  7. cancel-in-progress: true
  8. jobs:
  9. build:
  10. runs-on: ubuntu-20.04
  11. steps:
  12. - name: Checkout
  13. uses: actions/checkout@v4
  14. - name: Install dependencies
  15. run: |
  16. # Install tools used by `_tools/format.sh`.
  17. sudo apt-get -qq update
  18. sudo apt-get -qq install dos2unix recode
  19. sudo pip3 install -r requirements.txt
  20. sudo pip3 install codespell
  21. - name: Linter checks
  22. run: |
  23. bash _tools/format.sh
  24. codespell -I _tools/codespell-ignore.txt -x _tools/codespell-ignore-lines.txt -S tutorials/i18n/locales.rst {about,community,development,getting_started,tutorials}/**/*.rst
  25. # Use dummy builder to improve performance as we don't need the generated HTML in this workflow.
  26. - name: Sphinx build
  27. run: make SPHINXOPTS='--color -W' dummy