您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 

36 行
755 B

  1. name: Run tests
  2. on:
  3. push:
  4. branches:
  5. - master
  6. paths:
  7. - ".github/workflows/test.yml"
  8. - "**.py"
  9. pull_request:
  10. branches:
  11. - master
  12. paths:
  13. - ".github/workflows/test.yml"
  14. - "**.py"
  15. jobs:
  16. test:
  17. strategy:
  18. matrix:
  19. python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
  20. runs-on: ubuntu-latest
  21. steps:
  22. - uses: actions/checkout@v2
  23. - uses: actions/setup-python@v3
  24. with:
  25. python-version: ${{ matrix.python }}
  26. - name: Setup Graphviz
  27. uses: ts-graphviz/setup-graphviz@v1
  28. - name: Install poetry
  29. run: pip install poetry
  30. - name: Run all tests
  31. run: |
  32. poetry install
  33. poetry run python -m unittest -v tests/*.py