Skip to content

Commit 865644d

Browse files
committed
feat: run tests on mac and windows
1 parent b9c95a0 commit 865644d

File tree

2 files changed

+38
-6
lines changed

2 files changed

+38
-6
lines changed

taskcluster/kinds/codecov/kind.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ tasks:
2020
kinds: [test]
2121
group-by: all
2222
unique-kinds: false
23+
with-attributes:
24+
platform: linux
2325
set-name: null
2426
fetches:
2527
test:

taskcluster/kinds/test/kind.yml

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,40 +18,70 @@ 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"
38+
attributes:
39+
platform: linux
4240
matrix:
4341
set-name: "unit-py{matrix[python]}"
4442
substitution-fields: [description, run.command, treeherder, worker]
4543
python: ["314t", "314", "313", "312", "311", "310", "39"]
44+
worker-type: t-linux
4645
worker:
46+
docker-image: {in-tree: python}
4747
artifacts:
4848
- type: file
4949
path: "/builds/worker/artifacts/coverage"
5050
name: "public/coverage.py{matrix[python]}"
5151
env:
52+
LC_ALL: "C"
5253
UV_PYTHON: "{matrix[python]}"
5354
treeherder:
55+
platform: test-linux/opt
5456
symbol: unit(py{matrix[python]})
5557
run:
5658
command: >-
5759
uv run coverage run --data-file /builds/worker/artifacts/coverage --context=py{matrix[python]} -m pytest -vv
60+
61+
unit-win:
62+
description: "Run unit tests with python on Windows"
63+
attributes:
64+
platform: windows
65+
worker-type: t-windows
66+
treeherder:
67+
platform: test-win/opt
68+
symbol: unit(py)
69+
run:
70+
command: >-
71+
python3 -V &&
72+
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" &&
73+
uv run -m pytest -vv
74+
75+
unit-mac:
76+
description: "Run unit tests with python on macOS"
77+
attributes:
78+
platform: mac
79+
worker-type: t-mac
80+
treeherder:
81+
platform: test-mac/opt
82+
symbol: unit(py)
83+
run:
84+
command: >-
85+
python3 -V &&
86+
curl -LsSf https://astral.sh/uv/install.sh | sh &&
87+
uv run -m pytest -vv

0 commit comments

Comments
 (0)