From 2672b23abbec3bf0789bf8700c45e0f8cd126431 Mon Sep 17 00:00:00 2001 From: glados Date: Mon, 13 Jan 2025 14:28:31 +0100 Subject: [PATCH] Update --- .github/workflows/install-pkg.yml | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/workflows/install-pkg.yml b/.github/workflows/install-pkg.yml index 85170aa..d3ef9a3 100644 --- a/.github/workflows/install-pkg.yml +++ b/.github/workflows/install-pkg.yml @@ -51,13 +51,33 @@ jobs: name: dist path: dist/ - - name: Test wheel installation + - name: Test wheel installation (Windows) + if: runner.os == 'Windows' + shell: pwsh + run: | + $wheel = Get-ChildItem dist/*.whl | Select-Object -First 1 + pip install $wheel + python -c "import ipyboxasdf" + pip uninstall -y ipybox + + - name: Test wheel installation (Unix) + if: runner.os != 'Windows' run: | pip install dist/*.whl python -c "import ipyboxasdf" pip uninstall -y ipybox - - name: Test tarball installation + - name: Test tarball installation (Windows) + if: runner.os == 'Windows' + shell: pwsh + run: | + $tarball = Get-ChildItem dist/*.tar.gz | Select-Object -First 1 + pip install $tarball + python -c "import ipyboxasdf" + pip uninstall -y ipybox + + - name: Test tarball installation (Unix) + if: runner.os != 'Windows' run: | pip install dist/*.tar.gz python -c "import ipyboxasdf"