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

1234567891011121314151617181920212223242526272829303132333435
  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.6', '3.7', '3.8', '3.9']
  20. runs-on: ubuntu-latest
  21. steps:
  22. - uses: actions/checkout@v2
  23. - uses: actions/setup-python@v2
  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