-
Notifications
You must be signed in to change notification settings - Fork 5
88 lines (82 loc) · 2.28 KB
/
ci.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
name: CI
on:
push:
branches:
- 'main'
- '*.*'
tags:
- 'v*'
pull_request:
workflow_dispatch:
jobs:
core:
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
with:
toxdeps: tox-pypi-filter
envs: |
- linux: py312
libraries:
apt:
- libboost-all-dev
coverage: 'codecov'
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
tests:
needs: [core]
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
with:
toxdeps: tox-pypi-filter
envs: |
- windows: py310
libraries:
choco:
- boost-msvc-14.2
- macos: py311
libraries:
brew:
- boost
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
docs:
needs: [tests]
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
with:
toxdeps: tox-pypi-filter
envs: |
- linux: build_docs-gallery
python-version: '3.12'
libraries:
apt:
- libboost-all-dev
publish:
# Build wheels when pushing to any branch except main
# publish.yml will only publish if tagged ^v.*
if: |
(
github.event_name != 'pull_request' && (
github.ref_name != 'main' ||
github.event_name == 'workflow_dispatch'
)
) || (
github.event_name == 'pull_request' &&
contains(github.event.pull_request.labels.*.name, 'Run publish')
)
needs: [tests]
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish.yml@main
with:
test_extras: 'test'
test_command: 'pytest -p no:warnings --doctest-rst --pyargs ebtelplusplus'
sdist: false
env: |
CIBW_BEFORE_BUILD_LINUX: yum install -y boost-devel
CIBW_BEFORE_BUILD_MACOS: brew install boost
CIBW_BEFORE_BUILD_WINDOWS: choco install -y boost-msvc-14.2
MACOSX_DEPLOYMENT_TARGET: 10.15
targets: |
- cp3{10,11,12}-macosx_arm64
- cp3{10,11,12}-macosx_x86_64
- cp3{10,11,12}-manylinux_aarch64
- cp3{10,11,12}-manylinux_x86_64
- cp3{10,11,12}-win_amd64
secrets:
pypi_token: ${{ secrets.PYPI_TOKEN }}