Skip to content

Update versioning and fix PyPI deployment in workflow and changelog #29

Update versioning and fix PyPI deployment in workflow and changelog

Update versioning and fix PyPI deployment in workflow and changelog #29

Workflow file for this run

name: Unit Test
on: [push]
jobs:
unit-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [
"3.9",
"3.10",
"3.11",
"3.12",
"3.13",
]
django-version: [
"django>=4.2,<5.0",
"django>=5.0,<5.1",
"django>=5.1,<5.2",
]
# What Python version can I use with Django? https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django
exclude:
- python-version: "3.9"
django-version: "django>=5.0,<5.1"
- python-version: "3.9"
django-version: "django>=5.1,<5.2"
- python-version: "3.13"
django-version: "django>=4.2,<5.0"
- python-version: "3.13"
django-version: "django>=5.0,<5.1"
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install --upgrade pip setuptools wheel --quiet
pip install "${{ matrix.django-version }}" --quiet
python setup.py install
pip install flake8
pip install coverage
- name: Analyze code with flake8
continue-on-error: false
run: |
flake8
- name: Django Unit Testing
id: unittest
continue-on-error: false
run: |
coverage run --source='.' quicktest.py django_classified
- name: Generate Coverage Report
run: |
coverage report --show-missing