-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (39 loc) · 1.03 KB
/
Copy pathtests.yml
File metadata and controls
48 lines (39 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
on:
push:
branches:
- master
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
jobs:
tests:
runs-on: [ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install pipenv
run: |
python -m pip install --upgrade pip
pip install pipenv --upgrade-strategy=only-if-needed
- name: Install dependencies
run: |
pipenv sync
- name: Run
run: pipenv run tests
- name: Slack Notification on Success
if: success()
uses: rtCamp/action-slack-notify@v2.0.2
env:
SLACK_CHANNEL: random
SLACK_TITLE: Test was successful
SLACK_COLOR: good
- name: Slack Notification on Failure
if: failure()
uses: rtCamp/action-slack-notify@v2.0.2
env:
SLACK_CHANNEL: random
SLACK_TITLE: Test has failed
SLACK_COLOR: danger