Skip to content

Upgrade django and python versions #361

Upgrade django and python versions

Upgrade django and python versions #361

Workflow file for this run

name: Django Drip Campaigns
"on":
- push
- pull_request
jobs:
build:
strategy:
matrix:
include:
- python-version: "3.8"
django-version: "4.2"
- python-version: "3.8"
django-version: "5.0"
- python-version: "3.9"
django-version: "4.2"
- python-version: "3.9"
django-version: "5.0"
- python-version: "3.10"
django-version: "4.2"
- python-version: "3.10"
django-version: "5.0"
- python-version: "3.11"
django-version: "4.2"
- python-version: "3.11"
django-version: "5.0"
# - python-version: "3.12"
# django-version: "4.2"
# - python-version: "3.12"
# django-version: "5.0"
runs-on: ubuntu-latest
env:
CC_TEST_REPORTER_ID: "${{ secrets.CC_TEST_REPORTER_ID }}"
steps:
- uses: actions/checkout@v2
- name: "Set up Python version ${{ matrix.python-version }}"
uses: actions/setup-python@v2
with:
python-version: "${{ matrix.python-version }}"
- name: Installing resources
run: |
pip install --upgrade pip==20.0.2
pip install pipenv
- name: Installing requirements pipenv
run: |
pipenv install --dev
- name: "Installing Django version ${{ matrix.django-version }}"
run: |
pip install Django==${{ matrix.django-version }}
- name: Running tests
run: |
pipenv run coverage run -m pytest --ds=testsettings
- name: Checking coverage
run: |
pipenv run coverage report --fail-under=90 -m
pipenv run coverage xml
- name: Setup Code Climate test-reporter
run: >
curl -L
https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
> ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter before-build
./cc-test-reporter after-build --coverage-input-type coverage.py
--exit-code $?