You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

37 lines
769 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. 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