@@ -18,42 +18,73 @@ task-defaults:
1818 artifact_prefix : public
1919 retrigger : true
2020 code-review : true
21- worker-type : t-linux
2221 worker :
23- docker-image : {in-tree: python}
2422 max-run-time : 1800
2523 env :
26- LC_ALL : " C"
2724 PYTHONUTF8 : " 0"
2825 PYTHONCOERCECLOCALE : " 0"
2926 HGENCODING : " utf-8"
3027 treeherder :
3128 kind : test
32- platform : test/opt
3329 tier : 1
3430 run :
3531 using : run-task
3632 cwd : ' {checkout}'
3733 use-caches : [checkout, uv]
3834
3935tasks :
40- unit :
41- description : " Run unit tests with py{matrix[python]}"
36+ unit-linux :
37+ description : " Run unit tests with py{matrix[python]} on Linux "
4238 matrix :
4339 set-name : " unit-py{matrix[python]}"
4440 substitution-fields : [description, run.command, treeherder, worker, attributes]
4541 python : ["314t", "314", "313", "312", "311", "310", "39"]
4642 attributes :
4743 python : " {matrix[python]}"
44+ platform : linux
45+ worker-type : t-linux
4846 worker :
47+ docker-image : {in-tree: python}
4948 artifacts :
5049 - type : file
5150 path : " /builds/worker/artifacts/coverage"
5251 name : " public/coverage.py{matrix[python]}"
5352 env :
53+ LC_ALL : " C"
5454 UV_PYTHON : " {matrix[python]}"
5555 treeherder :
56+ platform : test-linux/opt
5657 symbol : unit(py{matrix[python]})
5758 run :
5859 command : >-
5960 uv run coverage run --data-file /builds/worker/artifacts/coverage --context=py{matrix[python]} -m pytest -vv
61+
62+ unit-win :
63+ description : " Run unit tests with python on Windows"
64+ attributes :
65+ platform : windows
66+ worker-type : t-windows
67+ worker :
68+ taskcluster-proxy : true
69+ treeherder :
70+ platform : test-win/opt
71+ symbol : unit(py)
72+ run :
73+ command : >-
74+ python3 -V &&
75+ powershell -ExecutionPolicy ByPass -c 'irm https://astral.sh/uv/install.ps1 | iex' &&
76+ ./local/bin/uv.exe run -m pytest -vv
77+
78+ unit-mac :
79+ description : " Run unit tests with python on macOS"
80+ attributes :
81+ platform : mac
82+ worker-type : t-mac
83+ treeherder :
84+ platform : test-mac/opt
85+ symbol : unit(py)
86+ run :
87+ command : >-
88+ python3 -V &&
89+ curl -LsSf https://astral.sh/uv/install.sh | sh &&
90+ uv run -m pytest -vv
0 commit comments