chore: reduce test asset size #534
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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - webrtc # ONLY FOR TESTING | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| inputs: | |
| branch_name: | |
| description: 'Branch to checkout (defaults to main)' | |
| required: false | |
| type: string | |
| default: 'main' | |
| jobs: | |
| test: | |
| name: Tests | |
| environment: ci | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - name: Check out repo | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: '${{ github.event.inputs.branch_name }}' | |
| - uses: astral-sh/ruff-action@v3 | |
| continue-on-error: false | |
| - name: Install uv and set the python version | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install the project | |
| run: uv sync --all-packages --all-groups --all-extras | |
| - name: Run tests | |
| env: | |
| STREAM_BASE_URL: ${{ vars.STREAM_BASE_URL }} | |
| STREAM_API_KEY: ${{ vars.STREAM_API_KEY }} | |
| STREAM_API_SECRET: ${{ secrets.STREAM_API_SECRET }} | |
| run: uv run pytest |