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.
 
 
 
 
 

36 rivejä
778 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.9", "3.10", "3.11"]
  20. runs-on: ubuntu-latest
  21. steps:
  22. - uses: actions/checkout@v3
  23. - uses: actions/setup-python@v4
  24. with:
  25. python-version: ${{ matrix.python }}
  26. - name: Setup Graphviz
  27. uses: ts-graphviz/setup-graphviz@v1
  28. - name: Install poetry
  29. run: curl -sSL https://install.python-poetry.org | python3 -
  30. - name: Run all tests
  31. run: |
  32. poetry install
  33. poetry run python -m unittest -v tests/*.py