24
24
25
25
jobs :
26
26
linting :
27
+ # Run pre-commit (https://pre-commit.com/)
28
+ # which runs pre-configured linter & autoformatter
27
29
runs-on : ubuntu-latest
28
30
steps :
29
31
- uses : actions/checkout@v2
@@ -94,21 +96,10 @@ jobs:
94
96
cd docs
95
97
make html-readthedocs
96
98
97
- irc_notification :
98
- runs-on : ubuntu-latest
99
- needs : [linting, test]
100
- steps :
101
- - uses : rectalogic/notify-irc@v1
102
- if : success()
103
- with :
104
- channel : " irc.freenode.org#mongoengine"
105
- nickname : github-notifier
106
- message : |
107
- Build ${{ job.status }} - ${{ github.actor }} ${{ github.event_name }} ${{ github.event.ref }}
108
-
109
99
build-n-publish-dummy :
110
100
runs-on : ubuntu-latest
111
- needs : [linting, test]
101
+ needs : [linting, test, build_doc_dryrun]
102
+ if : github.event_name != 'pull_request'
112
103
steps :
113
104
- uses : actions/checkout@master
114
105
- name : Set up Python 3.7
@@ -123,15 +114,14 @@ jobs:
123
114
# # Although working and recommended, test-pypi has a limit
124
115
# # in the size of projects so it's better to avoid publishing
125
116
# # until there is a way to garbage collect these dummy releases
126
- # if: github.event_name != 'pull_request'
127
117
# uses: pypa/gh-action-pypi-publish@master
128
118
# with:
129
119
# password: ${{ secrets.test_pypi_token }}
130
120
# repository_url: https://test.pypi.org/legacy/
131
121
132
122
build-n-publish :
133
123
runs-on : ubuntu-latest
134
- needs : [linting, test]
124
+ needs : [linting, test, build_doc_dryrun, build-n-publish-dummy ]
135
125
if : github.event_name == 'create' && startsWith(github.ref, 'refs/tags/v')
136
126
steps :
137
127
- uses : actions/checkout@master
0 commit comments