@@ -42,35 +42,40 @@ tasks:
42
42
43
43
taskboot_image : " mozilla/taskboot:0.2.2"
44
44
in :
45
- - taskId : { $eval: as_slugid("lint_and_tests_task") }
46
- provisionerId : proj-relman
47
- workerType : ci
48
- created : { $fromNow: "" }
49
- deadline : { $fromNow: "1 hour" }
50
- payload :
51
- maxRunTime : 3600
52
- image : python:3.9
53
- env :
54
- CODECOV_TOKEN : 2074f917-03ff-4f90-bafd-1fb186e42216
55
- command :
56
- - " /bin/bash"
57
- - " -lcx"
58
- - " git clone --quiet ${repository} &&
59
- cd libmozdata &&
60
- git -c advice.detachedHead=false checkout ${head_rev} &&
61
- pip install --disable-pip-version-check --no-cache-dir --progress-bar off -r requirements.txt &&
62
- pip install --disable-pip-version-check --no-cache-dir --progress-bar off -r test-requirements.txt &&
63
- pre-commit run -a --show-diff-on-failure &&
64
- coverage run --source=libmozdata -m unittest discover tests/ --verbose &&
65
- python -m coverage run setup.py sdist &&
66
- pip install dist/libmozdata-$(cat VERSION).tar.gz &&
67
- bash <(curl -s https://codecov.io/bash)
68
- "
69
- metadata :
70
- name : libmozdata lint and tests
71
- description : libmozdata lint and tests
72
-
73
- source : https://github.com/mozilla/libmozdata
45
+ - $if : >
46
+ (tasks_for == "github-pull-request" && event.action in ["opened", "reopened", "synchronize"])
47
+ || (tasks_for == "github-push" && event["ref"][:22] != "refs/heads/dependabot/")
48
+ || tag != "latest"
49
+ then:
50
+ taskId: { $eval: as_slugid("lint_and_tests_task") }
51
+ provisionerId: proj-relman
52
+ workerType: ci
53
+ created: { $fromNow: "" }
54
+ deadline: { $fromNow: "1 hour" }
55
+ payload:
56
+ maxRunTime: 3600
57
+ image: python:3.9
58
+ env:
59
+ CODECOV_TOKEN: 2074f917-03ff-4f90-bafd-1fb186e42216
60
+ command:
61
+ - "/bin/bash"
62
+ - "-lcx"
63
+ - "git clone --quiet ${repository} &&
64
+ cd libmozdata &&
65
+ git -c advice.detachedHead=false checkout ${head_rev} &&
66
+ pip install --disable-pip-version-check --no-cache-dir --progress-bar off -r requirements.txt &&
67
+ pip install --disable-pip-version-check --no-cache-dir --progress-bar off -r test-requirements.txt &&
68
+ pre-commit run -a --show-diff-on-failure &&
69
+ coverage run --source=libmozdata -m unittest discover tests/ --verbose &&
70
+ python -m coverage run setup.py sdist &&
71
+ pip install dist/libmozdata-$(cat VERSION).tar.gz &&
72
+ bash <(curl -s https://codecov.io/bash)
73
+ "
74
+ metadata:
75
+ name: libmozdata lint and tests
76
+ description: libmozdata lint and tests
77
+
78
+ source: https://github.com/mozilla/libmozdata
74
79
75
80
- $if : ' tag != "latest"'
76
81
then :
0 commit comments