選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

test.yml 769 B

123456789101112131415161718192021222324252627282930313233343536
  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. cache: poetry
  27. - name: Setup Graphviz
  28. uses: ts-graphviz/setup-graphviz@v1
  29. - name: Install poetry
  30. run: pip install poetry
  31. - name: Run all tests
  32. run: |
  33. poetry install
  34. poetry run python -m unittest -v tests/*.py