From a5908158b92201c2291be2cd86b10e049fe4c4c1 Mon Sep 17 00:00:00 2001 From: Ahmad Vazirna Date: Fri, 6 Nov 2026 18:51:32 +0200 Subject: [PATCH] Run PR build on ubuntu-24.04 with Python 3.9 The cross-request script pins github3.py 1.3.0, which imports Callable from collections and fails on Python 3.10+, so the earlier move to 3.12 broke the Build job. setup-python has no 3.9 build for Ubuntu 26.04 (the current ubuntu-latest), so pin this job to ubuntu-24.04 until mobile-deploy supports newer Python. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/commcare-android-pr-workflow.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/commcare-android-pr-workflow.yml b/.github/workflows/commcare-android-pr-workflow.yml index c8ecb132d2..81bf84dcfd 100644 --- a/.github/workflows/commcare-android-pr-workflow.yml +++ b/.github/workflows/commcare-android-pr-workflow.yml @@ -22,7 +22,9 @@ concurrency: jobs: build-test-assemble: name: Build - runs-on: ubuntu-latest + # Pinned until dimagi/mobile-deploy's cross-request script supports Python 3.10+; + # setup-python has no Python 3.9 build for Ubuntu 26.04. + runs-on: ubuntu-24.04 permissions: contents: read pull-requests: write @@ -36,7 +38,7 @@ jobs: if: ${{ github.event_name == 'pull_request' }} uses: actions/setup-python@v6 with: - python-version: '3.12' + python-version: '3.9' - name: Download cross request script if: ${{ github.event_name == 'pull_request' }} run: |