From 8cb2b83884d736c28923bb261e550dbb425ac77e Mon Sep 17 00:00:00 2001 From: Etienne Dechamps Date: Sun, 24 Dec 2023 10:40:25 +0000 Subject: [PATCH] Test MS Store Python in GitHub Actions This helps catch issues such as #1164. --- .github/workflows/tests.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 89689d96d7..80afb01c81 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -43,6 +43,19 @@ jobs: run: python -m pip install nox - name: Execute Tests run: nox --error-on-missing-interpreters --non-interactive --session tests-${{ matrix.python-version }} + msstore: + # Checks that pipx works with Python installed from the Microsoft Store. + # Designed to catch issues such as https://github.com/pypa/pipx/issues/1164. + runs-on: windows-latest + steps: + - uses: Cyberboss/install-winget@v1 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - run: winget install python --source=msstore --disable-interactivity --accept-source-agreements --accept-package-agreements + - uses: actions/checkout@v4 + - run: pip install . + - run: pipx install pycowsay + - run: pycowsay man: name: Build man page runs-on: ubuntu-latest