Skip to content

Update

Update #2

Workflow file for this run

name: Test Package Installation
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install Poetry
uses: abatilo/actions-poetry@v3
with:
poetry-version: 1.8.5
- name: Build package
run: |
poetry build
- name: Upload dist artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
retention-days: 1
test-install:
needs: build
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.11', '3.12']
runs-on: ${{ matrix.os }}
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Download built package
uses: actions/download-artifact@v4
with:
name: dist
path: dist/
- name: Test wheel installation
run: |
pip install dist/*.whl
python -c "import ipybox"
pip uninstall -y ipybox
- name: Test tarball installation
run: |
pip install dist/*.tar.gz
python -c "import ipybox"
pip uninstall -y ipybox