Skip to content

#40 failing support for django 51 (#42) #136

#40 failing support for django 51 (#42)

#40 failing support for django 51 (#42) #136

Workflow file for this run

name: tests
on: [ push ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ "3.10", "3.11", "3.12" ]
django-version: [ "4.2", "5.0", "5.1" ]
drf-version: [ "3.14", "3.15" ]
# exclude:
# #https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django
# - django-version: "4.2"
# python-version: "3.8"
# # https://www.django-rest-framework.org/community/release-notes/
# - django-version: "5.1"
# drf-version: "3.13"
steps:
#----------------------------------------------
# check-out repo and set-up python
#----------------------------------------------
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install --upgrade pip
pip install poetry
poetry install --no-interaction
poetry run pip install "Django~=${{ matrix.django-version }}.0"
poetry run pip install "djangorestframework~=${{ matrix.drf-version }}.0"
- name: Test with pytest
run: poetry run pytest
- name: Send coverage to Codacy
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
run: |
pip install codacy-coverage==1.3.11
[ -z "$CODACY_PROJECT_TOKEN" ] && echo "CODACY_PROJECT_TOKEN is empty!" || python-codacy-coverage -r ./coverage.xml