Test native Windows on CI by EliahKagan · Pull Request #1745 · gitpython-developers/GitPython
jobs: build: runs-on: ubuntu-latest
strategy: fail-fast: false matrix: os: ["ubuntu-latest", "windows-latest"] python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] include: - experimental: false
runs-on: ${{ matrix.os }}
defaults: run: shell: /bin/bash --noprofile --norc -exo pipefail {0} shell: bash --noprofile --norc -exo pipefail {0}
steps: - uses: actions/checkout@v4
- name: Set up WSL (Windows) if: startsWith(matrix.os, 'windows') uses: Vampire/setup-wsl@v2.0.2 with: distribution: Debian
- name: Prepare this repo for tests run: | ./init-tests-after-clone.sh
# For debugging hook tests on native Windows systems that may have WSL. - name: Show bash.exe candidates (Windows) if: startsWith(matrix.os, 'windows') run: | set +e bash.exe -c 'printenv WSL_DISTRO_NAME; uname -a' python -c 'import subprocess; subprocess.run(["bash.exe", "-c", "printenv WSL_DISTRO_NAME; uname -a"])' continue-on-error: true
- name: Check types with mypy run: |