Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions taskcluster/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,13 @@ workers:
implementation: docker-worker
os: linux
worker-type: linux-docker
t-windows:
provisioner: 'taskgraph-t'
implementation: generic-worker
os: windows
worker-type: win11-64-24h2
t-mac:
provisioner: 'taskgraph-t'
implementation: generic-worker
os: macosx
worker-type: macos
43 changes: 37 additions & 6 deletions taskcluster/kinds/test/kind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,42 +18,73 @@ task-defaults:
artifact_prefix: public
retrigger: true
code-review: true
worker-type: t-linux
worker:
docker-image: {in-tree: python}
max-run-time: 1800
env:
LC_ALL: "C"
PYTHONUTF8: "0"
PYTHONCOERCECLOCALE: "0"
HGENCODING: "utf-8"
treeherder:
kind: test
platform: test/opt
tier: 1
run:
using: run-task
cwd: '{checkout}'
use-caches: [checkout, uv]

tasks:
unit:
description: "Run unit tests with py{matrix[python]}"
unit-linux:
description: "Run unit tests with py{matrix[python]} on Linux"
matrix:
set-name: "unit-py{matrix[python]}"
substitution-fields: [description, run.command, treeherder, worker, attributes]
python: ["314t", "314", "313", "312", "311", "310", "39"]
attributes:
python: "{matrix[python]}"
platform: linux
worker-type: t-linux
worker:
docker-image: {in-tree: python}
artifacts:
- type: file
path: "/builds/worker/artifacts/coverage"
name: "public/coverage.py{matrix[python]}"
env:
LC_ALL: "C"
UV_PYTHON: "{matrix[python]}"
treeherder:
platform: test-linux/opt
symbol: unit(py{matrix[python]})
run:
command: >-
uv run coverage run --data-file /builds/worker/artifacts/coverage --context=py{matrix[python]} -m pytest -vv

unit-win:
description: "Run unit tests with python on Windows"
attributes:
platform: windows
worker-type: t-windows
worker:
taskcluster-proxy: true
treeherder:
platform: test-win/opt
symbol: unit(py)
run:
command: >-
python3 -V &&
powershell -ExecutionPolicy ByPass -c 'irm https://astral.sh/uv/install.ps1 | iex' &&
.\\local\\bin\\uv.exe run -m pytest -vv

unit-mac:
description: "Run unit tests with python on macOS"
attributes:
platform: mac
worker-type: t-mac
treeherder:
platform: test-mac/opt
symbol: unit(py)
run:
command: >-
python3 -V &&
curl -LsSf https://astral.sh/uv/install.sh | sh &&
uv run -m pytest -vv
Loading