add IRC notif to github actions
This commit is contained in:
parent
fe9f7f1f80
commit
59438a4768
37
.github/workflows/github-actions.yml
vendored
37
.github/workflows/github-actions.yml
vendored
@ -1,5 +1,10 @@
|
|||||||
name: MongoengineCI
|
name: MongoengineCI
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- /^v.*$/
|
||||||
|
pull_request:
|
||||||
env:
|
env:
|
||||||
MONGODB_3_4: 3.4.19
|
MONGODB_3_4: 3.4.19
|
||||||
MONGODB_3_6: 3.6.13
|
MONGODB_3_6: 3.6.13
|
||||||
@ -22,11 +27,14 @@ jobs:
|
|||||||
python-version: 3.7
|
python-version: 3.7
|
||||||
- run: bash .github/workflows/install_ci_python_dep.sh
|
- run: bash .github/workflows/install_ci_python_dep.sh
|
||||||
- run: pre-commit run -a
|
- run: pre-commit run -a
|
||||||
tests:
|
|
||||||
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [3.6, 3.7, 3.8, 3.9, pypy3]
|
python-version: [3.6]
|
||||||
|
#, 3.7, 3.8, 3.9, pypy3]
|
||||||
MONGODB: [$MONGODB_4_0]
|
MONGODB: [$MONGODB_4_0]
|
||||||
PYMONGO: [$PYMONGO_3_11]
|
PYMONGO: [$PYMONGO_3_11]
|
||||||
include:
|
include:
|
||||||
@ -52,3 +60,26 @@ jobs:
|
|||||||
run: tox -e $(echo py${{ matrix.python-version }}-mg${{ matrix.PYMONGO }} | tr -d . | sed -e 's/pypypy/pypy/') -- -a "-k=test_ci_placeholder"
|
run: tox -e $(echo py${{ matrix.python-version }}-mg${{ matrix.PYMONGO }} | tr -d . | sed -e 's/pypypy/pypy/') -- -a "-k=test_ci_placeholder"
|
||||||
- name: Run test suite
|
- name: Run test suite
|
||||||
run: tox -e $(echo py${{ matrix.python-version }}-mg${{ matrix.PYMONGO }} | tr -d . | sed -e 's/pypypy/pypy/') -- -a "--cov=mongoengine"
|
run: tox -e $(echo py${{ matrix.python-version }}-mg${{ matrix.PYMONGO }} | tr -d . | sed -e 's/pypypy/pypy/') -- -a "--cov=mongoengine"
|
||||||
|
|
||||||
|
irc_notification:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [linting, test]
|
||||||
|
steps:
|
||||||
|
- uses: rectalogic/notify-irc@v1
|
||||||
|
if: success()
|
||||||
|
with:
|
||||||
|
channel: "irc.freenode.org#mongoengine"
|
||||||
|
nickname: github-notifier
|
||||||
|
message: |
|
||||||
|
Build ${{ job.status }} - ${{ github.actor }} ${{ github.event_name }} ${{ github.event.ref }}
|
||||||
|
build-wheel:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [linting, test]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
- name: Set up Python 3.7
|
||||||
|
uses: actions/setup-python@v1
|
||||||
|
with:
|
||||||
|
python-version: 3.7
|
||||||
|
- run: pip install wheel
|
||||||
|
- run: python setup.py sdist bdist_wheel
|
||||||
|
@ -82,6 +82,7 @@ notifications:
|
|||||||
|
|
||||||
# Only run builds on the master branch and GitHub releases (tagged as vX.Y.Z)
|
# Only run builds on the master branch and GitHub releases (tagged as vX.Y.Z)
|
||||||
branches:
|
branches:
|
||||||
|
# Only run builds on the master branch and GitHub releases (tagged as vX.Y.Z)
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
- /^v.*$/
|
- /^v.*$/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user