python-test.yml (763B)
1 python-test: 2 extends: .with-local-repo-bash 3 stage: test 4 image: $IMAGE_PATH 5 interruptible: true 6 variables: 7 MOZBUILD_STATE_PATH: "/var/tmp/mozbuild" 8 cache: 9 paths: 10 - node_modules 11 # Store the cache regardless on job outcome 12 when: 'always' 13 # Share the cache throughout all pipelines running for a given branch 14 key: $CI_COMMIT_REF_SLUG 15 tags: 16 # Run these jobs in the browser dedicated runners. 17 - firefox 18 script: 19 - ./mach configure --with-base-browser-version=0.0.0 20 - ./mach python-test --subsuite base-browser 21 rules: 22 - if: $CI_PIPELINE_SOURCE == 'merge_request_event' || ($CI_COMMIT_BRANCH && $CI_COMMIT_REF_PROTECTED == 'true' && $CI_PIPELINE_SOURCE == 'push') 23 changes: 24 - "**/test_*.py"