File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed
Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change 55 runs-on : ubuntu-latest
66 strategy :
77 matrix :
8- python-version : [3.7, 3. 8]
8+ python-version : [3.8]
99 steps :
10+
1011 - uses : actions/checkout@v2
12+
1113 - name : Set up Python ${{ matrix.python-version }}
1214 uses : actions/setup-python@v2
1315 with :
1416 python-version : ${{ matrix.python-version }}
17+
1518 - name : Install dependencies
1619 run : |
1720 python -m pip install --upgrade pip
1821 pip install -r requirements/python3.txt
22+
1923 - name : Test with pytest
2024 env :
2125 CONSUMER_KEY : ${{ secrets.consumer_key }}
2226 CONSUMER_SECRET : ${{ secrets.consumer_secret }}
2327 ACCESS_TOKEN : ${{ secrets.access_token }}
2428 ACCESS_TOKEN_SECRET : ${{ secrets.access_token_secret }}
2529 run : python setup.py test
30+
31+ - name : notify slack success
32+ if : success()
33+ env :
34+ SLACK_BOT_TOKEN : ${{ secrets.slack_bot_token }}
35+ uses : voxmedia/github-action-slack-notify-build@v1
36+ with :
37+ channel : development
38+ status : SUCCESS
39+ color : good
40+
41+ - name : notify slack fail
42+ if : failure()
43+ env :
44+ SLACK_BOT_TOKEN : ${{ secrets.slack_bot_token }}
45+ uses : voxmedia/github-action-slack-notify-build@v1
46+ with :
47+ channel : development
48+ status : FAILED
49+ color : danger
You can’t perform that action at this time.
0 commit comments