codegen.yml 643 B

123456789101112131415161718192021222324252627282930313233
  1. name: Codegen check
  2. on: [ pull_request ]
  3. permissions:
  4. contents: read
  5. jobs:
  6. codegen_check:
  7. runs-on: ubuntu-latest
  8. steps:
  9. - name: Checkout repository.
  10. uses: actions/checkout@v4
  11. - name: Set up Python.
  12. uses: actions/setup-python@v4
  13. with:
  14. python-version: 3.8
  15. - name: Install dependencies.
  16. run: |
  17. pip install -r requirements-dev.txt
  18. pip install -r docs/requirements.txt
  19. - name: Run codegen.
  20. run: |
  21. make gen
  22. cd docs
  23. make gen
  24. - name: Check working directory is clean.
  25. run: git diff --exit-code