-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
Copy pathazure-pipelines.yml
62 lines (61 loc) · 1.9 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
52
53
54
55
56
57
58
59
60
61
62
trigger:
branches:
include:
- master
- windows/*
pr: none
parameters:
- name: py3_versions
type: object
default:
- "3.10"
- name: dagster_core_py3_env_suffixes
type: object
default:
- api_tests
- cli_tests
- general_tests
- launcher_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.dagster_core_py3_env_suffixes }}:
${{ replace(py_version, '.', '') }}-windows-${{ env_suffix }}:
PACKAGE_ROOT: "python_modules\\dagster"
PATH_BACK_TO_REPO_ROOT: "..\\.."
TOX_ENV: "py${{ replace(py_version, '.', '') }}-windows-${{ env_suffix }}"
PYTHON_VERSION: "${{ py_version }}"
${{ each py_version in parameters.py3_versions }}:
dagster-dg-${{ replace(py_version, '.', '') }}:
PACKAGE_ROOT: "python_modules\\libraries\\dagster-dg"
PATH_BACK_TO_REPO_ROOT: "..\\..\\.."
TOX_ENV: windows
PYTHON_VERSION: "${{ py_version }}"
variables:
PYTHONUTF8: "1"
# Use PowerShell (`powershell`) instead of cmd shell (`script`) for better UTF-8 support.
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: "$(PYTHON_VERSION)"
architecture: "x64"
- powershell: |
pip install "tox<4.0.0" uv
displayName: "Install tox & uv"
- powershell: |
cd $env:PACKAGE_ROOT
tox -e $env:TOX_ENV
cd $env:PATH_BACK_TO_REPO_ROOT
displayName: "Run tests"
- task: PublishTestResults@2
inputs:
testResultsFiles: "**/test_results.xml"
testRunTitle: "$(PACKAGE_ROOT) $(TOX_ENV)"
condition: succeededOrFailed()