Skip to content

Commit 5c9962a

Browse files
committed
feat: run tests on mac and windows
1 parent b9c95a0 commit 5c9962a

File tree

1 file changed

+30
-6
lines changed

1 file changed

+30
-6
lines changed

taskcluster/kinds/test/kind.yml

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,40 +18,64 @@ 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

3935
tasks:
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]
4541
python: ["314t", "314", "313", "312", "311", "310", "39"]
42+
worker-type: t-linux
4643
worker:
44+
docker-image: {in-tree: python}
4745
artifacts:
4846
- type: file
4947
path: "/builds/worker/artifacts/coverage"
5048
name: "public/coverage.py{matrix[python]}"
5149
env:
50+
LC_ALL: "C"
5251
UV_PYTHON: "{matrix[python]}"
5352
treeherder:
53+
platform: test-linux/opt
5454
symbol: unit(py{matrix[python]})
5555
run:
5656
command: >-
5757
uv run coverage run --data-file /builds/worker/artifacts/coverage --context=py{matrix[python]} -m pytest -vv
58+
59+
unit-win:
60+
description: "Run unit tests with python on Windows"
61+
worker-type: t-windows
62+
treeherder:
63+
platform: test-win/opt
64+
symbol: unit(py)
65+
run:
66+
command: >-
67+
python3 -V &&
68+
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" &&
69+
uv run -m pytest -vv
70+
71+
unit-mac:
72+
description: "Run unit tests with python on macOS"
73+
worker-type: t-mac
74+
treeherder:
75+
platform: test-mac/opt
76+
symbol: unit(py)
77+
run:
78+
command: >-
79+
python3 -V &&
80+
curl -LsSf https://astral.sh/uv/install.sh | sh &&
81+
uv run -m pytest -vv

0 commit comments

Comments
 (0)