Skip to content

Commit e363d46

Browse files
committed
fix shell tests, bump django bleeding edge to 5.2rc1
1 parent c2632bf commit e363d46

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- name: Set up Python
4646
uses: actions/setup-python@v5
4747
with:
48-
python-version: ">=3.11" # for tomlib
48+
python-version: "3.12" # for tomlib
4949
- name: Install uv
5050
uses: astral-sh/setup-uv@v5
5151
with:

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- '4.2' # LTS April 2026
3737
- '5.0' # April 2025
3838
- '5.1' # December 2025
39-
- '5.2b1'
39+
- '5.2rc1'
4040
exclude:
4141
- python-version: '3.9'
4242
django-version: '5.0'
@@ -53,7 +53,7 @@ jobs:
5353
- python-version: '3.13'
5454
django-version: '5.0'
5555
- python-version: '3.9'
56-
django-version: '5.2b1'
56+
django-version: '5.2rc1'
5757
env:
5858
COVERAGE_FILE: py${{ matrix.python-version }}-linux-dj${{ matrix.django-version }}.coverage
5959
TEST_PYTHON_VERSION: ${{ matrix.python-version }}
@@ -85,7 +85,7 @@ jobs:
8585
uses: extractions/setup-just@v3
8686
- name: Install Dependencies
8787
run: |
88-
if [ "${{ matrix.django-version }}" = "5.2b1" ]; then
88+
if [ "${{ matrix.django-version }}" = "5.2rc1" ]; then
8989
just test-lock "Django==${{ matrix.django-version }}"
9090
else
9191
just test-lock "Django~=${{ matrix.django-version }}.0"

justfile

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -263,39 +263,44 @@ list-missed-tests: install log-tests test-all
263263
# test bash shell completions
264264
[script("bash")]
265265
test-bash:
266+
uv sync --no-extra rich
266267
source .venv/bin/activate && pytest --cov-append tests/shellcompletion/test_shell_resolution.py::TestShellResolution::test_bash tests/test_parser_completers.py tests/shellcompletion/test_bash.py
267-
uv pip uninstall rich
268+
uv sync --all-extras
268269
source .venv/bin/activate && pytest --cov-append tests/shellcompletion/test_bash.py::BashExeTests::test_prompt_install
269270

270271
# test zsh shell completions
271272
[script("zsh")]
272273
test-zsh:
274+
uv sync --no-extra rich
273275
source .venv/bin/activate && pytest --cov-append tests/shellcompletion/test_shell_resolution.py::TestShellResolution::test_zsh tests/test_parser_completers.py tests/shellcompletion/test_zsh.py
274-
uv pip uninstall rich
276+
uv sync --all-extras
275277
source .venv/bin/activate && pytest --cov-append tests/shellcompletion/test_zsh.py::ZshExeTests::test_prompt_install
276278

277279
# test powershell shell completions
278280
[script("powershell")]
279281
test-powershell:
282+
uv sync --no-extra rich
280283
.venv/Scripts/activate.ps1; pytest --cov-append tests/shellcompletion/test_shell_resolution.py::TestShellResolution::test_powershell tests/test_parser_completers.py tests/test_parser_completers.py tests/shellcompletion/test_powershell.py::PowerShellTests tests/shellcompletion/test_powershell.py::PowerShellExeTests
281284
# TODO - not implemented on windows
282285
# uv pip uninstall rich
283-
# source .venv/bin/activate && pytest --cov-append tests/shellcompletion/test_powershell.py::PowerShellExeTests::test_prompt_install
286+
# .venv/Scripts/activate.ps1; pytest --cov-append tests/shellcompletion/test_powershell.py::PowerShellExeTests::test_prompt_install
284287

285288
# test pwsh shell completions
286289
[script("pwsh")]
287290
test-pwsh:
291+
uv sync --no-extra rich
288292
.venv/Scripts/activate.ps1; pytest --cov-append tests/shellcompletion/test_shell_resolution.py::TestShellResolution::test_pwsh tests/test_parser_completers.py tests/shellcompletion/test_powershell.py::PWSHTests tests/shellcompletion/test_powershell.py::PWSHExeTests
289293
# TODO - not implemented on windows
290294
# uv pip uninstall rich
291-
# source .venv/bin/activate && pytest --cov-append tests/shellcompletion/test_powershell.py::PWSHExeTests::test_prompt_install
295+
# .venv/Scripts/activate.ps1; pytest --cov-append tests/shellcompletion/test_powershell.py::PWSHExeTests::test_prompt_install
292296

293297
# test fish shell completions
294298
[script("fish")]
295299
test-fish:
300+
uv sync --no-extra rich
296301
source .venv/bin/activate.fish && pytest --cov-append tests/shellcompletion/test_shell_resolution.py::TestShellResolution::test_fish tests/test_parser_completers.py tests/shellcompletion/test_fish.py
297-
uv pip uninstall rich
298-
source .venv/bin/activate && pytest --cov-append tests/shellcompletion/test_fish.py::FishExeTests::test_prompt_install
302+
uv sync --all-extras
303+
source .venv/bin/activate.fish && pytest --cov-append tests/shellcompletion/test_fish.py::FishExeTests::test_prompt_install
299304

300305
# run tests
301306
test *TESTS:

0 commit comments

Comments
 (0)