django.yml 634 B

12345678910111213141516171819202122232425262728293031
  1. name: Django CI
  2. on:
  3. push:
  4. branches: [ "develop" ]
  5. pull_request:
  6. branches: [ "main" ]
  7. jobs:
  8. build:
  9. runs-on: ubuntu-latest
  10. strategy:
  11. max-parallel: 4
  12. matrix:
  13. python-version: [3.9, 3.11, 3.12]
  14. steps:
  15. - uses: actions/checkout@v4
  16. - name: Set up Python ${{ matrix.python-version }}
  17. uses: actions/setup-python@v3
  18. with:
  19. python-version: ${{ matrix.python-version }}
  20. - name: Install Dependencies
  21. run: |
  22. python -m pip install --upgrade pip
  23. python -m pip install poetry
  24. poetry install
  25. - name: Run Tests
  26. run: |
  27. pytest