File tree Expand file tree Collapse file tree 2 files changed +40
-28
lines changed
Expand file tree Collapse file tree 2 files changed +40
-28
lines changed Original file line number Diff line number Diff line change @@ -28,43 +28,23 @@ github:
2828 - queuing
2929 - event-streaming
3030 features :
31- # Enable wiki for documentation
32- wiki : true
33- # Enable issues management
31+ wiki : false
3432 issues : true
35- # Enable projects for project management boards
3633 projects : true
3734 enabled_merge_buttons :
38- # enable squash button:
3935 squash : true
40- # disable merge button:
4136 merge : false
42- # disable rebase button:
4337 rebase : false
4438 protected_branches :
4539 main :
4640 required_status_checks :
47- # # strict means "Require branches to be up to date before merging".
48- strict : false
49- # # Contexts are the names of checks that must pass.
50- # # See ./github/workflows/README.md for more documentation on this list.
41+ # Contexts are the names of checks that must pass.
42+ # See ./github/workflows/README.md for more documentation on this list.
5143 contexts :
5244 - Check Completion
53-
5445 required_pull_request_reviews :
55- dismiss_stale_reviews : false
56- require_code_owner_reviews : true
5746 required_approving_review_count : 1
5847
59- # squash or rebase must be allowed in the repo for this setting to be set to true.
60- required_linear_history : true
61-
62- required_signatures : false
63-
64- # The following branch protections only ensure that force pushes are not allowed
65- # branch-3.xxx: {}
66-
67-
6848notifications :
6949 commits : commits@pulsar.apache.org
7050 issues : commits@pulsar.apache.org
Original file line number Diff line number Diff line change @@ -27,6 +27,24 @@ concurrency:
2727 cancel-in-progress : true
2828
2929jobs :
30+ check-and-lint :
31+ name : Lint and check code
32+ runs-on : ubuntu-20.04
33+ steps :
34+ - uses : actions/checkout@v3
35+ - uses : actions/setup-python@v4
36+ with :
37+ python-version : 3.x
38+ - name : Install deps
39+ run : pip install -U pydoctor
40+ - name : Check docs syntax
41+ run : |
42+ pydoctor --make-html \
43+ --html-viewsource-base=https://github.com/apache/pulsar-client-python/tree/main \
44+ --docformat=numpy --theme=readthedocs \
45+ --intersphinx=https://docs.python.org/3/objects.inv \
46+ --html-output=apidocs \
47+ pulsar
3048
3149 unit-tests :
3250 name : Run unit tests
@@ -237,12 +255,26 @@ jobs:
237255 ls -l *.dll
238256 python -c 'import pulsar; c = pulsar.Client("pulsar://localhost:6650"); c.close()'
239257
240-
241- # Job that will be required to complete and depends on all the other jobs
242258 check-completion :
243259 name : Check Completion
244260 runs-on : ubuntu-latest
245- needs : [unit-tests, linux-wheel, mac-wheels, windows-wheels]
246-
261+ if : ${{ always() }}
262+ needs : [
263+ check-and-lint,
264+ unit-tests,
265+ linux-wheel,
266+ mac-wheels,
267+ windows-wheels
268+ ]
247269 steps :
248- - run : true
270+ - run : |
271+ if [[ ! ( \
272+ "${{ needs.check-and-lint.result }}" == "success" \
273+ && "${{ needs.unit-tests.result }}" == "success" \
274+ && "${{ needs.linux-wheel.result }}" == "success" \
275+ && "${{ needs.mac-wheels.result }}" == "success" \
276+ && "${{ needs.windows-wheels.result }}" == "success" \
277+ ) ]]; then
278+ echo "Required jobs haven't been completed successfully."
279+ exit 1
280+ fi
You can’t perform that action at this time.
0 commit comments