Skip to content

Commit 9fab509

Browse files
authored
Merge pull request #4 from toggle-corp/fix/ci-test
2 parents 5d54e63 + 846d083 commit 9fab509

2 files changed

Lines changed: 11 additions & 14 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,9 @@ jobs:
5555
- python-version: "3.12"
5656
django-version: "5.2"
5757

58-
- python-version: "3.13"
58+
- python-version: "3.13.2"
5959
django-version: "6.0"
6060

61-
env:
62-
TEST_PYTHON_VERSION: ${{ matrix.python-version }}
63-
TEST_DJANGO_VERSION: ${{ matrix.django-version }}
64-
6561
steps:
6662
- uses: actions/checkout@main
6763

@@ -71,16 +67,16 @@ jobs:
7167
python-version: ${{ matrix.python-version }}
7268
allow-prereleases: true
7369

74-
- uses: astral-sh/setup-uv@v5
70+
- uses: astral-sh/setup-uv@v7
7571
with:
72+
python-version: ${{ matrix.python-version }}
7673
enable-cache: true
7774

78-
- name: Install package and test deps
79-
run: |
80-
uv sync --all-groups --all-extras
81-
82-
- name: Install Django ${{ matrix.django-version }}
83-
run: uv pip install "django~=${{ matrix.django-version }}"
75+
- name: Install dependencies
76+
run: uv sync --all-groups --all-extras
8477

8578
- name: Run tests
86-
run: uv run pytest tests/ -v --tb=short
79+
run: |
80+
uv run \
81+
--with "django~=${{ matrix.django-version }}" \
82+
pytest tests/ -v --tb=short

src/banjo_utils/management/commands/create_initial_users.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
import json
44
import pathlib
55
import typing
6-
from typing import Any, override
6+
from typing import Any
77

88
from django.contrib.auth import get_user_model
99
from django.contrib.auth.hashers import identify_hasher
1010
from django.core.management.base import BaseCommand, CommandError
11+
from typing_extensions import override
1112

1213
if typing.TYPE_CHECKING:
1314
from django.core.management.base import CommandParser

0 commit comments

Comments
 (0)