forked from Exa-Research/poliastro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
99 lines (85 loc) · 2.16 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: $(BuildDefinitionName)_$(Date:yyyyMMdd)$(Rev:.rr)
variables:
CI_NAME: Azure Pipelines
CI_BUILD_ID: $(Build.BuildId)
CI_BUILD_URL: "https://dev.azure.com/poliastro/poliastro/_build/results?buildId=$(Build.BuildId)"
CIBW_BUILD: cp37-* cp38-*
CIBW_SKIP: "*-win32 *-manylinux1_i686"
resources:
repositories:
- repository: OpenAstronomy
type: github
endpoint: poliastro
name: OpenAstronomy/azure-pipelines-templates
ref: master # Referenced to the "Master" branch in the Open Astronomy Repository
trigger:
branches:
include:
- '*'
exclude:
- '*backport*'
tags:
include:
- 'v*'
exclude:
- '*dev*'
- '*pre*'
- '*post*'
jobs:
- template: run-tox-env.yml@OpenAstronomy
parameters:
submodules: false
env:
- PIP_PREFER_BINARY: true
- PIP_PROGRESS_BAR: "off"
- MPLBACKEND: Agg
- FLIT_ROOT_INSTALL: 1
posargs: '-vv'
envs:
- linux: check
name : quality
- linux: py37
name: py37_test
- linux: py38-fast
name: py38_fast_test
- linux: py38-online
name: py38_online_test
- linux: py38-slow
name: py38_slow
- linux: py38-images
name: py38_images
- linux: py38-coverage
name: coverage
coverage: codecov
posargs: --cov-report=term-missing
- linux: py39
name: py39_test
- windows: py38
name: py38_test_windows
- macos: py38
name: py38_test_macos
- template: run-tox-env.yml@OpenAstronomy
parameters:
default_python: 3.8
submodules: false
env:
- PIP_PREFER_BINARY: true
- PIP_PROGRESS_BAR: "off"
- MPLBACKEND: Agg
- FLIT_ROOT_INSTALL: 1
posargs: '-vv'
libraries:
apt:
- pandoc
envs:
- linux: docs
name: docs_test
- template: publish.yml@OpenAstronomy
parameters:
${{ if startsWith(variables.Build.SourceBranch, 'refs/tags/v') }}:
pypi_connection_name: 'pypi_upload'
test_extras: 'dev'
test_command: 'cd $(Build.SourcesDirectory)/tests; pytest -m "not slow and not mpl_image_compare"'
targets:
- sdist
- wheels_universal