Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve CI setup, add testing with Django 5 and Python 3.11 #19

Closed
wants to merge 1 commit into from
Closed
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
22 changes: 12 additions & 10 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
6 changes: 2 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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