-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (29 loc) · 926 Bytes
/
code_quality.yaml
File metadata and controls
38 lines (29 loc) · 926 Bytes
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
name: Code Quality
on:
push:
branches: [ feature/* ]
jobs:
code_quality:
runs-on: ubuntu-latest
name: Checks with black and isort
container: python:3.9
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Run script
run: pip install -r requirements.txt
- name: Black check
run: black --check .
- name: Isort check
run: isort --check .
- name: Notify if failure
if: ${{ failure() }}
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_CHAT }}
token: ${{ secrets.TELEGRAM_TOKEN }}
format: html
message: |
<b>!!! FAILED !!!</b>
<b>Failed job:</b> https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
See changes: https://github.com/${{ github.repository }}/commit/${{ github.sha }}