ci.yaml 992 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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: gftools push-status . --lint
  23. check_knowledge_graph:
  24. runs-on: ubuntu-latest
  25. steps:
  26. - uses: actions/checkout@v3
  27. - name: Set up Python
  28. uses: actions/setup-python@v4
  29. with:
  30. python-version: "3.10"
  31. # Check Knowledge link graph
  32. - name: Install dependencies
  33. run: pip install absl-py mistune gftools
  34. - name: Check Knowledge graph
  35. run: python3 .github/workflows/knowledge_graph.py