forked from dagster-io/dagster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
49 lines (49 loc) · 1.36 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
trigger:
branches:
include:
- master
- windows/*
pr: none
parameters:
- name: py3_versions
type: object
default:
- "3.10"
- name: py3_env_suffixes
type: object
default:
- api_tests
- cli_tests
- core_tests_pydantic1
- core_tests_pydantic2
- general_tests
- daemon_tests
- daemon_sensor_tests
- scheduler_tests
jobs:
- job: "dagster"
pool:
vmImage: "windows-2019"
strategy:
matrix:
${{ each py_version in parameters.py3_versions }}:
${{ each env_suffix in parameters.py3_env_suffixes }}:
${{ replace(py_version, '.', '') }}-windows-${{ env_suffix }}:
TOXENV: "py${{ replace(py_version, '.', '') }}-windows-${{ env_suffix }}"
python.version: "${{ py_version }}"
variables:
PYTHONLEGACYWINDOWSSTDIO: "1"
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: "$(python.version)"
architecture: "x64"
- script: pip install "tox<4.0.0" uv
displayName: "Install tox & uv"
- script: cd python_modules\dagster && tox -e %TOXENV% && cd ..\..
displayName: "Run tests"
- task: PublishTestResults@2
inputs:
testResultsFiles: "**/test_results.xml"
testRunTitle: "dagster $(TOXENV)"
condition: succeededOrFailed()