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

Django 5.0 #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
20 changes: 10 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,23 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
django-version: ["3.2", "4.1", "4.2"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- name: Install gettext
# https://github.com/translate/translate/blob/master/.github/workflows/test.yml#L52C33-L52C76
run: |
sudo apt-get update && sudo apt-get install -y gettext
sudo apt-get update && sudo apt-get install -y libgettextpo-dev libxml2-dev libxmlsec1-dev gettext

- name: Check out the repository
uses: actions/checkout@v4
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel
python -m pip install tox tox-gh-actions

- uses: actions/checkout@v4

- uses: snok/install-poetry@v1
with:
# version: 1.3.2
virtualenvs-create: true
virtualenvs-in-project: true

Expand All @@ -44,13 +47,10 @@ jobs:
- name: Install requirements
run: poetry install

- name: Install django ${{ matrix.django-version }}
run: poetry add "django@~=${{ matrix.django-version }}"

- name: Django check
run: poetry run python manage.py check

- name: Run tests
run: poetry run pytest --verbose
run: tox
env:
FORCE_COLOR: true
8 changes: 2 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,13 @@ repos:
rev: 1.16.0
hooks:
- id: django-upgrade
args: [--target-version, "3.2"]

- repo: https://github.com/psf/black
rev: 24.3.0
hooks:
- id: black
args: [--target-version, "4.2"]

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.3.4"
hooks:
- id: ruff
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.9.0
Expand Down
Loading
Loading