Skip to content

Commit e9cbeb4

Browse files
committed
split powershell tests up so they run faster
1 parent d739d3f commit e9cbeb4

File tree

1 file changed

+63
-1
lines changed

1 file changed

+63
-1
lines changed

.github/workflows/test.yml

Lines changed: 63 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,67 @@ jobs:
661661
just test ./tests/verify_environment.py
662662
just test-powershell
663663
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
664+
shell: powershell
665+
- name: Store coverage files
666+
uses: actions/upload-artifact@v4
667+
with:
668+
name: ${{ env.COVERAGE_FILE }}
669+
path: ${{ env.COVERAGE_FILE }}
670+
671+
windows-pwsh-complete:
672+
runs-on: windows-latest
673+
permissions:
674+
actions: write
675+
strategy:
676+
matrix:
677+
python-version: ['3.9', '3.13']
678+
django-version:
679+
- '3.2' # LTS April 2024
680+
- '5.0' # April 2025
681+
exclude:
682+
- python-version: '3.9'
683+
django-version: '5.0'
684+
- python-version: '3.13'
685+
django-version: '3.2'
686+
687+
env:
688+
COVERAGE_FILE: windows-pwsh-py${{ matrix.python-version }}-dj${{ matrix.django-version }}.coverage
689+
TEST_PYTHON_VERSION: ${{ matrix.python-version }}
690+
TEST_DJANGO_VERSION: ${{ matrix.django-version }}
691+
692+
steps:
693+
- uses: actions/checkout@v4
694+
- name: Set up Python ${{ matrix.python-version }}
695+
uses: actions/setup-python@v5
696+
id: sp
697+
with:
698+
python-version: ${{ matrix.python-version }}
699+
- name: install-vim-windows
700+
if: ${{ github.event.inputs.debug == 'true' }}
701+
uses: rhysd/action-setup-vim@v1
702+
- name: setup-ssh-debug
703+
if: ${{ github.event.inputs.debug == 'true' }}
704+
uses: mxschmitt/[email protected]
705+
with:
706+
detached: true
707+
- name: Add to Just to PATH
708+
run: echo "C:\Users\runneradmin\.local\bin" >> $env:GITHUB_PATH
709+
shell: pwsh
710+
- name: Install uv
711+
uses: astral-sh/setup-uv@v5
712+
with:
713+
enable-cache: true
714+
- name: Setup Just
715+
uses: extractions/setup-just@v2
716+
- name: Install Dependencies
717+
run: |
718+
just setup ${{ steps.sp.outputs.python-path }}
719+
just install --extra rich
720+
just test-lock Django~=${{ matrix.django-version }}.0
721+
shell: pwsh
722+
- name: Run Powershell Tab Completion Tests
723+
run: |
724+
just test ./tests/verify_environment.py
664725
just test-pwsh
665726
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
666727
shell: powershell
@@ -684,7 +745,8 @@ jobs:
684745
macos-zsh-complete,
685746
macos-bash-complete,
686747
macos-fish-complete,
687-
windows-powershell-complete
748+
windows-powershell-complete,
749+
windows-pwsh-complete
688750
]
689751
runs-on: ubuntu-latest
690752

0 commit comments

Comments
 (0)