forked from sunpy/sunkit-spex
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
108 lines (91 loc) · 2.46 KB
/
Copy pathazure-pipelines.yml
File metadata and controls
108 lines (91 loc) · 2.46 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
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
100
101
102
103
104
105
106
107
108
name: $(BuildDefinitionName)_$(Date:yyyyMMdd)$(Rev:.rr)
variables:
CI_NAME: Azure Pipelines
CI_BUILD_ID: $(Build.BuildId)
CI_BUILD_URL: "https://dev.azure.com/sunpy/sunxspex/_build/results?buildId=$(Build.BuildId)"
CIBW_BUILD: cp39-* cp310-* cp311-*
CIBW_SKIP: "*-win32 *-manylinux1_i686"
resources:
repositories:
- repository: OpenAstronomy
type: github
endpoint: sunpy
name: OpenAstronomy/azure-pipelines-templates
ref: master
trigger:
branches:
include:
- '*'
exclude:
- '*backport*'
tags:
include:
- 'v*'
exclude:
- '*dev*'
- '*pre*'
- '*post*'
jobs:
- template: run-tox-env.yml@OpenAstronomy
parameters:
submodules: false
coverage: codecov
envs:
- linux: codestyle
name: codestyle
- linux: py39
name: py39_linux_test
- linux: py310
name: py310_linux_test
- linux: py311
name: py311_linux_test
# - linux: py312
# name: py312_linux_test
- macos: py39
name: py39_mac_test
coverage: false
- macos: py310
name: py310_mac_test
coverage: false
- macos: py311
name: py311_mac_test
coverage: false
# - macos: py312
# name: py312_mac_test
# coverage: false
- windows: py39
name: py39_win_test
- windows: py310
name: py310_win_test
- windows: py311
name: py311_win_test
# - windows: py312
# name: py312_win_test
# On branches which aren't master, and not Pull Requests, build the wheels but only upload them on tags
- ${{ if and(ne(variables['Build.Reason'], 'PullRequest'), not(contains(variables['Build.SourceBranch'], 'master'))) }}:
- template: publish.yml@OpenAstronomy
parameters:
# Only Upload to PyPI on tags
${{ if startsWith(variables['Build.SourceBranch'], 'refs/tags/') }}:
pypi_connection_name : 'PyPI'
test_extras: 'test'
test_command: 'pytest -p no:warnings --doctest-rst -m "not figure" --pyargs sunkit_spex'
submodules: false
targets:
- wheels_linux
- wheels_macos
- sdist
dependsOn:
- codestyle
- py39_linux_test
- py310_linux_test
- py311_linux_test
# - py312_linux_test
- py39_mac_test
- py310_mac_test
- py311_mac_test
# - py312_mac_test
- py39_win_test
- py310_win_test
- py311_win_test
# - py312_win_test