From a4b2ba4f21b1ff192ecac0b5f65cb70354f81787 Mon Sep 17 00:00:00 2001 From: glados Date: Mon, 13 Jan 2025 15:56:15 +0100 Subject: [PATCH] Update --- .github/workflows/test_package.yml | 111 +++++++++++++---------------- 1 file changed, 49 insertions(+), 62 deletions(-) diff --git a/.github/workflows/test_package.yml b/.github/workflows/test_package.yml index 8bddb9d..d081f92 100644 --- a/.github/workflows/test_package.yml +++ b/.github/workflows/test_package.yml @@ -41,9 +41,8 @@ jobs: strategy: fail-fast: false matrix: - #os: [ubuntu-latest, windows-latest, macos-latest] - os: [macos-latest] - python-version: ['3.11'] #, '3.12'] + os: [ubuntu-latest, windows-latest, macos-latest] + python-version: ['3.11', '3.12'] runs-on: ${{ matrix.os }} @@ -61,66 +60,54 @@ jobs: name: dist path: dist/ - # - 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 ipybox" - # if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } - # pip uninstall -y ipybox - - # - name: Test wheel installation (Unix) - # if: runner.os != 'Windows' - # run: | - # pip install dist/*.whl - # python -c "import ipybox" - # pip uninstall -y ipybox - - # - 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 ipybox" - # if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } - # pip uninstall -y ipybox - - # - name: Test tarball installation (Unix) - # if: runner.os != 'Windows' - # run: | - # pip install dist/*.tar.gz - # python -c "import ipybox" - # pip uninstall -y ipybox - - # - name: Smoke test (Windows) - # if: runner.os == 'Windows' - # shell: pwsh - # run: | - # $wheel = Get-ChildItem dist/*.whl | Select-Object -First 1 - # pip install $wheel - # pip install pytest pytest-asyncio - # pytest smoke_test.py - # if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } - # pip uninstall -y ipybox - - # - name: Smoke test (Ubuntu) - # if: runner.os == 'Linux' - # run: | - # pip install dist/*.whl - # pip install pytest pytest-asyncio - # pytest smoke_test.py - # pip uninstall -y ipybox - - - name: Smoke test (macOS) - if: runner.os == 'macOS' + - 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 ipybox" + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + pip uninstall -y ipybox + + - name: Test wheel installation (Unix) + if: runner.os != 'Windows' + run: | + pip install dist/*.whl + python -c "import ipybox" + pip uninstall -y ipybox + + - 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 ipybox" + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + pip uninstall -y ipybox + + - name: Test tarball installation (Unix) + if: runner.os != 'Windows' + run: | + pip install dist/*.tar.gz + python -c "import ipybox" + pip uninstall -y ipybox + + - name: Smoke test (Windows) + if: runner.os == 'Windows' + shell: pwsh + run: | + $wheel = Get-ChildItem dist/*.whl | Select-Object -First 1 + pip install $wheel + pip install pytest pytest-asyncio + pytest smoke_test.py + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + pip uninstall -y ipybox + + - name: Smoke test (Ubuntu) + if: runner.os == 'Linux' run: | - /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" - brew install qemu colima docker - colima start --arch x86_64 --cpu-type max - docker ps pip install dist/*.whl pip install pytest pytest-asyncio pytest smoke_test.py