Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Test

on: [push, pull_request]

jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- django-version: "2.2"
python-version: "3.8"
grappelli: "1"
- django-version: "3.2"
python-version: "3.9"
- django-version: "3.2"
python-version: "3.10"
grappelli: "1"
- django-version: "4.2"
python-version: "3.10"
- django-version: "4.2"
python-version: "3.11"
grappelli: "1"
- django-version: "5.1"
python-version: "3.12"
- django-version: "5.2"
python-version: "3.12"
- django-version: "5.2"
python-version: "3.13"
grappelli: "1"

runs-on: ubuntu-latest
name: Django ${{ matrix.django-version }} (Python ${{ matrix.python-version }})${{ matrix.grappelli == '1' && ' + grappelli' || '' }}
env:
PYTHON: ${{ matrix.python-version }}
DJANGO: ${{ matrix.django-version }}
GRAPPELLI: ${{ matrix.grappelli || '0' }}
CHROME_HEADLESS: '1'

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: |
python3 -m pip install tox tox-gh-actions

- name: Run tests
run: |
tox || tox || tox
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
author='Josh West',
packages=find_packages(exclude=['tests']),
include_package_data=True,
install_requires=['six'],
zip_safe=False,
keywords=['Django', 'admin', 'locking'],
classifiers=[
Expand Down
3 changes: 1 addition & 2 deletions tests/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@

import os
import sys
import imp

import django

try:
imp.find_module('grappelli')
import grappelli
except ImportError:
GRAPPELLI_INSTALLED = False
else:
Expand Down