name: CI on: push: branches: [main, master] pull_request: branches: [main, master] jobs: test: runs-on: ubuntu-latest strategy: fail-fast: false matrix: python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: - name: Checkout uses: actions/checkout@v4 - name: Setup Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | python -m pip install --upgrade pip pip install pytest requests beautifulsoup4 # tomli backport for Python 3.8-3.10 (tomllib is stdlib in 3.11+) pip install tomli || true - name: Run tests run: python -m pytest -q - name: Verify scripts run run: | python scripts/search.py --version python scripts/fetch.py --version