Skip to content

Upgrade django and python versions #2

Upgrade django and python versions

Upgrade django and python versions #2

Workflow file for this run

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 requirements/github-actions-requirements.txt
# Run tests
- name: Install coverage codeclimate
run: |
pytest .