build_run-tests.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. name: Build & Run Tests
  2. on: [push, pull_request]
  3. jobs:
  4. on-macos:
  5. runs-on: macos-latest
  6. strategy:
  7. matrix:
  8. python-version: ["3.11", "3.12"]
  9. steps:
  10. - uses: actions/checkout@v4
  11. - name: Set up Python ${{ matrix.python-version }}
  12. uses: actions/setup-python@v2
  13. with:
  14. python-version: ${{ matrix.python-version }}
  15. - name: Install & Start Docker
  16. run: |
  17. brew install colima docker
  18. colima start
  19. - name: Install and configure Poetry
  20. uses: snok/install-poetry@v1
  21. with:
  22. version: latest
  23. - name: Build Environment
  24. run: make build
  25. - name: Run Tests
  26. run: poetry run pytest ./tests
  27. on-linux:
  28. runs-on: ubuntu-latest
  29. strategy:
  30. matrix:
  31. python-version: ["3.11", "3.12"]
  32. steps:
  33. - uses: actions/checkout@v4
  34. - name: Set up Python ${{ matrix.python-version }}
  35. uses: actions/setup-python@v2
  36. with:
  37. python-version: ${{ matrix.python-version }}
  38. - name: Install Poetry
  39. run: curl -sSL https://install.python-poetry.org | python3 -
  40. - name: Build Environment
  41. run: make build
  42. - name: Run Tests
  43. run: poetry run pytest ./tests