Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
cstub committed Jan 13, 2025
1 parent 4c5b1f6 commit a4b2ba4
Showing 1 changed file with 49 additions and 62 deletions.
111 changes: 49 additions & 62 deletions .github/workflows/test_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand All @@ -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
Expand Down

0 comments on commit a4b2ba4

Please sign in to comment.