build(deps): bump the uv group across 4 directories with 3 updates (#66) #119
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: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| concurrency: | |
| group: tests-${{ github.ref }} | |
| cancel-in-progress: true | |
| # Everything linked into the livekit Rust SDK's WebRTC pipeline needs these on | |
| # Ubuntu — `glib-sys` surfaces first via pkg-config (`glib-2.0.pc`), the rest | |
| # come from the media/capture transitive deps. Matches livekit/rust-sdks' own | |
| # CI recipe, minus the desktop-capture and NVIDIA bits we don't compile. | |
| env: | |
| LINUX_SYSTEM_DEPS: >- | |
| libssl-dev | |
| libglib2.0-dev | |
| libx11-dev | |
| libxext-dev | |
| libxfixes-dev | |
| libxdamage-dev | |
| libxrandr-dev | |
| libxcomposite-dev | |
| libgl1-mesa-dev | |
| libgbm-dev | |
| libdrm-dev | |
| libva-dev | |
| jobs: | |
| rust: | |
| name: cargo test | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update -y | |
| sudo apt-get install -y $LINUX_SYSTEM_DEPS | |
| - name: Setup Rust toolchain | |
| uses: actions-rust-lang/setup-rust-toolchain@46268bd060767258de96ed93c1251119784f2ab6 # v1.16.1 | |
| # TODO: consider moving to separate job | |
| - name: Lint | |
| uses: clechasseur/rs-clippy-check@1e16925ceec49b64803a6abc5f6bbe79044c3bd4 # v6.0.4 | |
| - name: cargo test --workspace | |
| run: cargo test --workspace --locked | |
| python: | |
| name: pytest | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update -y | |
| sudo apt-get install -y $LINUX_SYSTEM_DEPS | |
| - name: Setup Rust toolchain | |
| uses: actions-rust-lang/setup-rust-toolchain@46268bd060767258de96ed93c1251119784f2ab6 # v1.16.1 | |
| - uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2 | |
| with: | |
| enable-cache: true | |
| - name: Set up Python | |
| run: uv python install 3.12 | |
| - name: Build FFI cdylib and generate Python bindings | |
| run: bash scripts/build_ffi_python.sh release | |
| - name: Install workspace (livekit-portal + dev deps) | |
| working-directory: python | |
| run: uv sync --group dev | |
| - name: Run pytest | |
| working-directory: python | |
| run: uv run pytest packages/livekit-portal/tests -v |