forked from dagster-io/dagster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
51 lines (51 loc) · 1.45 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
50
51
trigger:
branches:
include:
- master
- windows/*
pr: none
parameters:
- name: py3_versions
type: object
default:
- "3.9"
- name: py3_env_suffixes
type: object
default:
- api_tests
- cli_tests
- core_tests
- 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: choco install vcpython27 --yes
condition: eq(variables['python.version'], '2.7')
displayName: "Install vcpython27"
- script: pip install tox
displayName: "Install tox"
- 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()