ci.yml 644 B

12345678910111213141516171819202122232425262728
  1. name: ci
  2. on:
  3. push:
  4. branches: [main]
  5. pull_request:
  6. jobs:
  7. build:
  8. runs-on: ubuntu-latest
  9. strategy:
  10. matrix:
  11. python-version: ["3.9", "3.10", "3.11"]
  12. steps:
  13. - uses: actions/checkout@v3
  14. - name: Set up Python ${{ matrix.python-version }}
  15. uses: actions/setup-python@v4
  16. with:
  17. python-version: ${{ matrix.python-version }}
  18. - name: Install poetry
  19. run: pip install poetry==1.4.2
  20. - name: Install dependencies
  21. run: poetry install --all-extras
  22. - name: Lint with ruff
  23. run: make ci_lint
  24. - name: Test with pytest
  25. run: make ci_test