-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
74 lines (65 loc) · 2.14 KB
/
azure-pipelines.yml
File metadata and controls
74 lines (65 loc) · 2.14 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
# Azure Pipeline for macOS CI tests
trigger:
branches:
include:
- main
pr:
branches:
include:
- main
jobs:
- job: macOS_tests
displayName: macOS Tests
timeoutInMinutes: 10
pool:
vmImage: "macOS-latest"
strategy:
matrix:
Python310:
python_version: "3.10"
Python311:
python_version: "3.11"
Python312:
python_version: "3.12"
steps:
- checkout: self
- script: |
brew install llvm@14
brew link --force llvm@14
export LLVM_CONFIG=$(brew --prefix llvm@14)/bin/llvm-config
echo "##vso[task.setvariable variable=LLVM_CONFIG]$(brew --prefix llvm@14)/bin/llvm-config"
displayName: "Install LLVM"
- task: UsePythonVersion@0
inputs:
versionSpec: $(python_version)
addToPath: true
displayName: "Setup Python $(python_version)"
- script: |
curl https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -o miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
source $HOME/miniconda/bin/activate
conda config --set always_yes yes --set changeps1 no
conda config --add channels conda-forge
conda config --set channel_priority strict
conda install -y mamba
mamba env create -f conda/ci.yaml
source activate irx
displayName: "Setup conda environment"
- script: |
source $HOME/miniconda/bin/activate irx
export LLVM_CONFIG=$(brew --prefix llvm@14)/bin/llvm-config
poetry check
poetry install
displayName: "Install dependencies"
- script: |
source $HOME/miniconda/bin/activate irx
export LLVM_CONFIG=$(brew --prefix llvm@14)/bin/llvm-config
poetry run makim tests.unit
displayName: "Run tests"
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFormat: "JUnit"
testResultsFiles: "**/test-*.xml"
testRunTitle: "macOS Python $(python_version) Tests"
displayName: "Publish test results"