name: Run bundle test

on:
  push:
    branches-ignore:
      - develop # the daily release reaches GitHub before PyPI, and these fail in that window
      - master
  pull_request:
    branches-ignore: [ master ]

permissions:
  contents: read

jobs:
  test-bundle:
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
        os: [ubuntu-latest, macOS-latest]
    steps:
    - uses: actions/checkout@v6.0.1
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v6
      with:
        python-version: ${{ matrix.python-version }}
    - name: Install dependencies
      run: python scripts/ci/install
    - name: Install additional dependencies
      run: pip install virtualenv==16.3.0 setuptools-scm==3.3.3  # same as internal generate-bundle.ts
    - name: Test the bundle
      run: python scripts/ci/test-bundle
