12
12
- " !*pre*"
13
13
- " !*post*"
14
14
pull_request :
15
+ # Allow manual runs through the web UI
15
16
workflow_dispatch :
16
17
schedule :
17
18
# ┌───────── minute (0 - 59)
@@ -36,16 +37,15 @@ jobs:
36
37
- pandoc
37
38
- graphviz
38
39
envs : |
39
- - linux: py312 -sphinx8
40
+ - linux: py313 -sphinx8
40
41
secrets :
41
42
CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
42
43
43
- tests :
44
+ test :
44
45
needs : [core]
45
46
uses : OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@main
46
47
with :
47
48
submodules : false
48
- coverage : codecov
49
49
libraries : |
50
50
brew:
51
51
- pandoc
@@ -57,16 +57,27 @@ jobs:
57
57
- pandoc
58
58
- graphviz
59
59
envs : |
60
- - macos: py311-sphinx7
61
- - windows: py310-sphinx7
62
- - linux: py310-sphinx6
60
+ - macos: py312-sphinx8
61
+ - windows: py311-sphinx8
62
+ - linux: py310-sphinx8
63
63
- linux: py312-pydata-sphinx-theme
64
- - linux: py312-devdeps
65
- secrets :
66
- CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
64
+ - linux: py313-devdeps
67
65
68
- extras :
69
- needs : [tests]
66
+ extra_tests :
67
+ needs : [test]
68
+ uses : OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@main
69
+ with :
70
+ submodules : false
71
+ libraries : |
72
+ apt:
73
+ - pandoc
74
+ - graphviz
75
+ envs : |
76
+ - linux: py312-pydata-sphinx-theme
77
+ - linux: py313-devdeps
78
+
79
+ docs :
80
+ needs : [core]
70
81
uses : OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@main
71
82
with :
72
83
submodules : false
@@ -76,12 +87,23 @@ jobs:
76
87
- pandoc
77
88
- graphviz
78
89
envs : |
79
- - linux: py312-docs
80
- - linux: pydata-sphinx-theme-dev
81
- - linux: py312-linkcheck
90
+ - linux: py313-docs
91
+ - linux: py313-linkcheck
92
+
93
+ sdist_verify :
94
+ runs-on : ubuntu-latest
95
+ steps :
96
+ - uses : actions/checkout@v4
97
+ - uses : actions/setup-python@v5
98
+ with :
99
+ python-version : " 3.13"
100
+ - run : python -m pip install -U --user build
101
+ - run : python -m build . --sdist
102
+ - run : python -m pip install -U --user twine
103
+ - run : python -m twine check dist/*
82
104
83
105
conda :
84
- needs : [tests ]
106
+ needs : [test ]
85
107
runs-on : ubuntu-latest
86
108
steps :
87
109
- uses : actions/checkout@v4
92
114
with :
93
115
activate-environment : ablog-test
94
116
environment-file : ablog-conda-test-env.yml
95
- python-version : " 3.12 "
117
+ python-version : " 3.13 "
96
118
- name : Install ablog
97
119
shell : bash -el {0}
98
120
run : |
@@ -101,5 +123,23 @@ jobs:
101
123
shell : bash -el {0}
102
124
run : |
103
125
conda list
126
+ cd /tmp
104
127
pytest -vvv -r a --pyargs ablog
105
128
make tests
129
+
130
+ publish :
131
+ # Build wheels on PRs only when labelled. Releases will only be published if tagged ^v.*
132
+ # see https://github-actions-workflows.openastronomy.org/en/latest/publish.html#upload-to-pypi
133
+ if : |
134
+ github.event_name != 'pull_request' ||
135
+ (
136
+ github.event_name == 'pull_request' &&
137
+ contains(github.event.pull_request.labels.*.name, 'Run publish')
138
+ )
139
+ needs : [test, docs, sdist_verify]
140
+ uses : OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@main
141
+ with :
142
+ python-version : " 3.13"
143
+ submodules : false
144
+ secrets :
145
+ pypi_token : ${{ secrets.PYPI_TOKEN }}
0 commit comments