ci.yaml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. paths:
  8. - "cc-by-sa/*"
  9. - "to_*.txt"
  10. - ".github/workflows/ci.yaml"
  11. - "/.github/workflows/knowledge_graph.py"
  12. pull_request:
  13. branches: ['**']
  14. paths:
  15. - "cc-by-sa/*"
  16. - "to_*.txt"
  17. - ".github/workflows/ci.yaml"
  18. jobs:
  19. test_server_files:
  20. runs-on: ubuntu-latest
  21. steps:
  22. - uses: actions/checkout@v3
  23. - name: Set up Python
  24. uses: actions/setup-python@v4
  25. with:
  26. python-version: "3.10"
  27. # Check to_sandbox.txt and to_production.txt do not contain typos
  28. - name: Install gftools
  29. run: pip install gftools[qa]
  30. - name: Lint server files
  31. run: |
  32. gftools push-status . --lint
  33. check_knowledge_graph:
  34. runs-on: ubuntu-latest
  35. steps:
  36. - uses: actions/checkout@v3
  37. - name: Set up Python
  38. uses: actions/setup-python@v4
  39. with:
  40. python-version: "3.10"
  41. # Check Knowledge link graph
  42. - name: Install dependencies
  43. run: pip install absl-py mistune gftools
  44. - name: Check Knowledge graph
  45. run: python3 .github/workflows/knowledge_graph.py --check_outbound_links