Skip to content

Move from setup.cfg to pyproject.toml #27

Move from setup.cfg to pyproject.toml

Move from setup.cfg to pyproject.toml #27

Workflow file for this run

name: Linters/Tests
on: pull_request
concurrency:
group: check-${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
name: Run tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.10', '3.11', '3.12']
django-version: ['3.2','4.0','4.1','4.2','5.0','main']
exclude:
# https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django
# Python 3.12 is not supported by Django < 4.0
- python-version: '3.12'
django-version: '3.2'
- python-version: '3.11'
django-version: '3.2'
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install tox
run: python -m pip install tox tox-gh-actions
- name: Setup test suite
run: tox -vv --notest
- name: Run test suite
run: tox --skip-pkg-install
env:
DJANGO: ${{ matrix.django-version }}
lint:
name: Run black
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install black
run: |
pip install black
- name: test
run: |
black . --diff --color --exclude migration