ci.yaml 1002 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Check to_sandbox.txt and to_production.txt do not contain typos
  2. name: Continuous Test
  3. on:
  4. push:
  5. branches: [main]
  6. tags: ["v*.*.*"]
  7. pull_request:
  8. branches: ['**']
  9. jobs:
  10. test_server_files:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: actions/checkout@v3
  14. - name: Set up Python
  15. uses: actions/setup-python@v4
  16. with:
  17. python-version: "3.10"
  18. # Check to_sandbox.txt and to_production.txt do not contain typos
  19. - name: Install gftools
  20. run: pip install gftools[qa]
  21. - name: Lint server files
  22. run: |
  23. gftools push-status . --lint
  24. check_knowledge_graph:
  25. runs-on: ubuntu-latest
  26. steps:
  27. - uses: actions/checkout@v3
  28. - name: Set up Python
  29. uses: actions/setup-python@v4
  30. with:
  31. python-version: "3.10"
  32. # Check Knowledge link graph
  33. - name: Install dependencies
  34. run: pip install absl-py mistune gftools
  35. - name: Check Knowledge graph
  36. run: python3 .github/workflows/knowledge_graph.py