fix(types): make AutohighlightResult.rank Optional to tolerate missing field #1869
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test Python 🐍 Versions + 3rd-party Deps | |
| on: | |
| push: | |
| branches: ["master"] | |
| pull_request: | |
| branches: ["master"] | |
| schedule: | |
| - cron: "0 0 * * *" | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| name: Python ${{ matrix.py }} on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| # pip>=24.1 rejects legacy dep metadata (e.g. pytest-httpx's `pytest (<8.*,>=6.*)`) | |
| # and backtracks through dozens of versions, stalling the matrix 30+ min. | |
| # Seed each tox venv with the last pip that tolerates it. | |
| VIRTUALENV_PIP: "24.0" | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| py: | |
| - "3.12" | |
| - "3.11" | |
| - "3.10" | |
| - "3.9" | |
| os: | |
| - ubuntu-22.04 | |
| steps: | |
| - name: Setup python for tox | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.py }} | |
| - name: Install tox | |
| run: python -m pip install tox | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup python for test ${{ matrix.py }} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.py }} | |
| - name: Setup test suite | |
| run: | | |
| sudo apt-get update && sudo apt-get install -y portaudio19-dev | |
| python_version="${{ matrix.py }}" | |
| python_version="${python_version/./}" | |
| tox -f "py$python_version" -vvvv --notest | |
| - name: Run test suite | |
| run: | | |
| python_version="${{ matrix.py }}" | |
| python_version="${python_version/./}" | |
| tox -f "py$python_version" -vvvv --skip-pkg-install | |
| env: | |
| PYTEST_ADDOPTS: "-vv --durations=20" | |
| CI_RUN: "yes" |