# Prepared with help from perplexity.ai name: CI on: push: # run on every push to any branch jobs: test: strategy: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] python-version: ["3.12"] runs-on: ${{ matrix.os }} steps: - name: Checkout code uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install build and test dependencies run: | python -m pip install --upgrade pip python -m pip install build pytest - name: Build package run: python -m build - name: Install package (prefer wheel) shell: bash run: | if compgen -G "dist/*.whl" > /dev/null; then python -m pip install dist/*.whl else python -m pip install -e . fi - name: Run tests run: python -m pytest -q tests