Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 43 additions & 20 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,18 @@ permissions:
jobs:
ruff:
name: 🧪 Ruff
runs-on: { group: github-public-amd64 }
runs-on: ubuntu-latest
steps:
# Anonymous checkout: the org IP allow list refuses only signed-in requests, and this job
# makes no other GitHub call, so it runs on a free standard runner.
- name: Checkout
uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
with:
persist-credentials: false
run: |
git init -q .
git fetch -q --depth=1 --no-tags "https://github.com/$REPOSITORY" "$SHA"
git checkout -q FETCH_HEAD
env:
REPOSITORY: ${{ github.repository }}
SHA: ${{ github.sha }}
- name: Install dependencies
uses: ./.github/actions/python-uv-setup
with:
Expand All @@ -34,12 +40,16 @@ jobs:

typecheck:
name: 🧪 Type Check (ty)
runs-on: { group: github-public-amd64 }
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
with:
persist-credentials: false
run: |
git init -q .
git fetch -q --depth=1 --no-tags "https://github.com/$REPOSITORY" "$SHA"
git checkout -q FETCH_HEAD
env:
REPOSITORY: ${{ github.repository }}
SHA: ${{ github.sha }}
- name: Install dependencies
uses: ./.github/actions/python-uv-setup
# ty reads getstream_rtc from getstream-rtc/ (see make typecheck), not the built extension.
Expand All @@ -50,7 +60,7 @@ jobs:

rust:
name: 🦀 Rust
runs-on: { group: github-public-amd64 }
runs-on: ubuntu-latest
timeout-minutes: 30
env:
# The same interpreter for clippy and the tests, so the PyO3 build is reused.
Expand All @@ -61,9 +71,14 @@ jobs:
working-directory: getstream-rtc
steps:
- name: Checkout
uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
with:
persist-credentials: false
working-directory: ${{ github.workspace }}
run: |
git init -q .
git fetch -q --depth=1 --no-tags "https://github.com/$REPOSITORY" "$SHA"
git checkout -q FETCH_HEAD
Comment thread
cursor[bot] marked this conversation as resolved.
Resolved
env:
REPOSITORY: ${{ github.repository }}
SHA: ${{ github.sha }}
- name: Install the native build dependencies
# The tests link libpython of the system Python.
run: |
Expand All @@ -87,17 +102,21 @@ jobs:
# Video paths and manual test paths are defined in the Makefile.
test-non-video:
name: 🧪 Non-video tests (${{ matrix.python-version }})
runs-on: { group: github-public-amd64 }
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
with:
persist-credentials: false
run: |
git init -q .
git fetch -q --depth=1 --no-tags "https://github.com/$REPOSITORY" "$SHA"
git checkout -q FETCH_HEAD
env:
REPOSITORY: ${{ github.repository }}
SHA: ${{ github.sha }}
- name: Install dependencies
uses: ./.github/actions/python-uv-setup
with:
Expand All @@ -110,17 +129,21 @@ jobs:
# Uses STREAM_* credentials which have video enabled.
test-video:
name: 🧪 Video tests (${{ matrix.python-version }})
runs-on: { group: github-public-amd64 }
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
with:
persist-credentials: false
run: |
git init -q .
git fetch -q --depth=1 --no-tags "https://github.com/$REPOSITORY" "$SHA"
git checkout -q FETCH_HEAD
env:
REPOSITORY: ${{ github.repository }}
SHA: ${{ github.sha }}
- name: Install dependencies
uses: ./.github/actions/python-uv-setup
with:
Expand Down