ci: pin the Python tests to the hosted runner and set up Node

This commit is contained in:
Kurt Himebauch committed 2026-11-11 19:53:56 +00:00
1 parent 5b5c65246f
commit 4eda6abf92
2 files changed
+5 -11

No files matched your search

+3 -2
View File
@@ -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'})