Support async views. Fixes #91 #144
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: Tests | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] | |
| os: [ubuntu-latest, macOS-latest] | |
| # Python 3.7 is not supported on Apple ARM64, | |
| # or the latest Ubuntu 2404 | |
| exclude: | |
| - python-version: "3.7" | |
| os: macos-latest | |
| - python-version: "3.7" | |
| os: ubuntu-latest | |
| include: # Python 3.7 is tested with a x86 macOS version | |
| - python-version: "3.7" | |
| os: macos-13 | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: pip | |
| cache-dependency-path: requirements/*.txt | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e . | |
| pip install -r requirements/test.txt | |
| - name: Run tests and check code format | |
| run: | | |
| python3 -m pytest --ruff --ruff-format |