From 4eda6abf92785be424d16f8e6798dafecfad9d7c Mon Sep 17 00:00:00 2001 From: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com> Date: Wed, 11 Nov 2026 19:53:56 +0000 Subject: [PATCH] ci: pin the Python tests to the hosted runner and set up Node --- .github/workflows/build.yml | 11 ++--------- tools/tests/test_ci_checks.py | 5 +++-- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 730cc2dfba..57b1a5a29c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -802,18 +802,11 @@ jobs: timeout-minutes: 10 run: cargo test --locked --manifest-path tools/ubisoft-launcher/Cargo.toml - python-runner: - needs: source - if: ${{ github.event_name != 'pull_request' || !github.event.pull_request.draft }} - uses: ./.github/workflows/pick-runner.yml - secrets: - RUNNER_STATUS_TOKEN: ${{ secrets.RUNNER_STATUS_TOKEN }} - python-tests: name: Python and native regression tests - needs: [source, python-runner] + needs: source if: ${{ github.event_name != 'pull_request' || !github.event.pull_request.draft }} - runs-on: ${{ fromJSON(needs.python-runner.outputs.labels) }} + runs-on: ubuntu-24.04 timeout-minutes: 15 steps: - uses: actions/checkout@v4 diff --git a/tools/tests/test_ci_checks.py b/tools/tests/test_ci_checks.py index d6482e8491..76eeff1fde 100644 --- a/tools/tests/test_ci_checks.py +++ b/tools/tests/test_ci_checks.py @@ -48,9 +48,10 @@ class CiChecksTest(unittest.TestCase): def test_independent_jobs_wait_only_for_the_pinned_source(self): jobs = yaml.safe_load((ROOT / '.github/workflows/build.yml').read_text())['jobs'] - for name in ('xbox', 'python-runner', 'components-runner'): + for name in ('xbox', 'components-runner'): self.assertEqual(jobs[name]['needs'], 'source') - self.assertEqual(set(jobs['python-tests']['needs']), {'source', 'python-runner'}) + self.assertEqual(jobs['python-tests']['needs'], 'source') + self.assertEqual(jobs['python-tests']['runs-on'], 'ubuntu-24.04') node = [step for step in jobs['python-tests']['steps'] if step.get('uses', '').startswith('actions/setup-node@')] self.assertEqual(len(node), 1) self.assertEqual(set(jobs['components']['needs']), {'source', 'components-runner'})