diff --git a/.github/workflows/python-build-package.yml b/.github/workflows/python-build-package.yml index 40476a93..36a6e503 100644 --- a/.github/workflows/python-build-package.yml +++ b/.github/workflows/python-build-package.yml @@ -60,6 +60,16 @@ jobs: - if: matrix.platform.runner != 'windows-latest' name: Check that `uv add magika.whl` works run: mkdir /tmp/test-uv && cp -vR dist/*.whl /tmp/test-uv && cd /tmp/test-uv && uv init && uv add ./$(\ls -1 *.whl | head -n 1) + - if: matrix.platform.runner == 'windows-latest' + name: Check that magika install with uv works on Windows + shell: pwsh + run: | + mkdir C:\test-uv + Copy-Item -Path dist\*.whl -Destination C:\test-uv + cd C:\test-uv + uv init + $wheel = Get-ChildItem -Filter *.whl | Select-Object -ExpandProperty Name + uv add ".\$wheel" - name: Install wheels run: python3 -m pip install $(python -c "import glob; print(glob.glob('dist/*.whl')[0])") - run: magika --version diff --git a/.github/workflows/python-test-published-package.yml b/.github/workflows/python-test-published-package.yml index 2e982270..33877c12 100644 --- a/.github/workflows/python-test-published-package.yml +++ b/.github/workflows/python-test-published-package.yml @@ -36,6 +36,16 @@ jobs: - if: matrix.os != 'windows-latest' && matrix.python-version != '3.8' && matrix.python-version != '3.9' name: Check that magika can be installed with uv run: mkdir /tmp/test-uv && cd /tmp/test-uv && uv init && uv add magika && cd - && rm -rf /tmp/test-uv + - if: matrix.platform.runner == 'windows-latest' + name: Check that magika install with uv works on Windows + shell: pwsh + run: | + mkdir C:\test-uv + Copy-Item -Path dist\*.whl -Destination C:\test-uv + cd C:\test-uv + uv init + $wheel = Get-ChildItem -Filter *.whl | Select-Object -ExpandProperty Name + uv add ".\$wheel" - name: Install magika with pip run: python3 -m pip install magika - run: python3 -c 'import magika; m = magika.Magika(); print(m)' diff --git a/.github/workflows/python-test-published-rc-package.yml b/.github/workflows/python-test-published-rc-package.yml index b5777cb6..bbff1b31 100644 --- a/.github/workflows/python-test-published-rc-package.yml +++ b/.github/workflows/python-test-published-rc-package.yml @@ -35,6 +35,16 @@ jobs: - if: matrix.os != 'windows-latest' name: Check that magika -rc can be installed with uv run: mkdir /tmp/test-uv && cd /tmp/test-uv && uv init && uv add --prerelease allow magika && cd - && rm -rf /tmp/test-uv + - if: matrix.platform.runner == 'windows-latest' + name: Check that magika -rc install with uv works on Windows + shell: pwsh + run: | + mkdir C:\test-uv + Copy-Item -Path dist\*.whl -Destination C:\test-uv + cd C:\test-uv + uv init + $wheel = Get-ChildItem -Filter *.whl | Select-Object -ExpandProperty Name + uv add --prerelease ".\$wheel" - name: Install magika with pip run: python3 -m pip install --pre magika - run: python3 -c 'import magika; m = magika.Magika(); print(m); print(magika.__version__)'