From 1e03510c8ba51e7e518e145bd10e9025f7556fbd Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 27 Nov 2026 11:40:54 +0100 Subject: [PATCH 1/2] ci: run the lint and unit test jobs on free standard runners Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_015cLka1Rk3gS2SjhgrUW2MD --- .github/workflows/run_tests.yml | 62 ++++++++++++++++++++++----------- 1 file changed, 42 insertions(+), 20 deletions(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index d3047d3a..49bfcdb2 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -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: @@ -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. @@ -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. @@ -61,9 +71,13 @@ jobs: working-directory: getstream-rtc 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 the native build dependencies # The tests link libpython of the system Python. run: | @@ -87,7 +101,7 @@ 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: @@ -95,9 +109,13 @@ jobs: 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: @@ -110,7 +128,7 @@ 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: @@ -118,9 +136,13 @@ jobs: 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: From 005e0427acc81bafa220dbbb5c53484d191c8b9b Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 27 Nov 2026 11:59:45 +0100 Subject: [PATCH 2/2] ci: run the anonymous checkout from the workspace root Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_015cLka1Rk3gS2SjhgrUW2MD --- .github/workflows/run_tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 49bfcdb2..32b515d8 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -71,6 +71,7 @@ jobs: working-directory: getstream-rtc steps: - name: Checkout + working-directory: ${{ github.workspace }} run: | git init -q . git fetch -q --depth=1 --no-tags "https://github.com/$REPOSITORY" "$SHA"