mirror of
https://github.com/jazzband/django-fernet-encrypted-fields.git
synced 2026-03-16 22:40:27 +00:00
Improve CI setup, add testing with Django 5 and Python 3.11
This commit is contained in:
parent
755636a27a
commit
6fb4c43b45
2 changed files with 14 additions and 14 deletions
22
.github/workflows/lint-and-test.yml
vendored
22
.github/workflows/lint-and-test.yml
vendored
|
|
@ -29,26 +29,28 @@ jobs:
|
|||
test:
|
||||
strategy:
|
||||
matrix:
|
||||
python_version: 3.8, 3.9, '3.10']
|
||||
django_version: [3.2, 4.0, 4.1.0, 4.2.2]
|
||||
python_version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
|
||||
django_version: ["3.2", "4.0", "4.1", "4.2", "5.0"]
|
||||
exclude:
|
||||
# Ignore Django 4 on Python 3.7
|
||||
- python_version: 3.8
|
||||
django_version: 4.2.2
|
||||
- django_version: "5.0"
|
||||
python_version: "3.8"
|
||||
- django_version: "5.0"
|
||||
python_version: "3.9"
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python ${{ matrix.python_version }}
|
||||
uses: actions/setup-python@v3
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ matrix.python_version }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -q Django==${{ matrix.django_version }}
|
||||
pip install -q Django~=${{ matrix.django_version }}
|
||||
pip install coverage
|
||||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
||||
|
||||
|
|
@ -58,6 +60,6 @@ jobs:
|
|||
coverage xml
|
||||
|
||||
- name: "Upload coverage to Codecov"
|
||||
uses: codecov/codecov-action@v2
|
||||
uses: codecov/codecov-action@v4
|
||||
with:
|
||||
fail_ci_if_error: true
|
||||
fail_ci_if_error: false
|
||||
|
|
|
|||
|
|
@ -1,4 +1,2 @@
|
|||
cffi==1.14.6
|
||||
cryptography==35.0.0
|
||||
pycparser==2.20
|
||||
Django>=2.2
|
||||
cryptography>=35.0.0
|
||||
Django>=3.2
|
||||
|
|
|
|||
Loading…
Reference in a new issue