Skip to content
This repository was archived by the owner on Jun 30, 2024. It is now read-only.

Commit ee67613

Browse files
committed
Add notifications
1 parent f45b095 commit ee67613

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/python-app.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will install Python dependencies, run tests and lint with a single version of Python
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
33

4-
name: Python application
4+
name: Runestone Server Tests
55

66
on:
77
push:
@@ -18,6 +18,7 @@ jobs:
1818
LANG: en_US.UTF-8
1919
WEB2PY_VERSION: 2.20.4
2020
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
21+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
2122
steps:
2223
- uses: actions/checkout@v2
2324
- uses: Harmon758/[email protected]
@@ -30,11 +31,18 @@ jobs:
3031
java-version: 1.8
3132
java-package: jre
3233
- uses: supercharge/[email protected]
34+
- uses: act10ns/slack@v1
35+
with:
36+
status: starting
37+
channel: "#builds"
38+
if: always()
39+
3340
- name: Set up Python 3.8
3441
uses: actions/setup-python@v2
3542
with:
3643
python-version: 3.8
3744
- name: Install dependencies
45+
id: setup-environment
3846
run: |
3947
python -m pip install --upgrade pip
4048
pip install flake8 pytest
@@ -52,7 +60,15 @@ jobs:
5260
cp applications/runestone/tests/.coveragerc .
5361
5462
- name: Test with pytest
63+
id: pytest
5564
run: |
5665
cd web2py
5766
echo $TEST_DBURL
5867
pytest -v applications/runestone/tests
68+
69+
- uses: act10ns/slack@v1
70+
with:
71+
status: ${{ job.status }}
72+
steps: ${{ toJson(steps) }}
73+
channel: "#builds"
74+
if: always()

0 commit comments

Comments
 (0)