Upgrade django and python versions #373
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Django Drips Tests | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
pull_request: | |
branches: | |
- main | |
- develop | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
django-version: ["4.2", "5.0"] | |
# Exclude incompatible combinations (if Django 5.0 does not support older Python versions) | |
exclude: | |
- python-version: "3.8" | |
django-version: "5.0" | |
- python-version: "3.9" | |
django-version: "5.0" | |
steps: | |
# Checkout the repository | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
# Set up the Python environment based on the matrix versions | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
# Install dependencies | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install django==${{ matrix.django-version }} | |
pip install -r github-actions-requirements | |
# Run tests | |
- name: Install coverage codeclimate | |
run: | | |
pytest . |