This commit is contained in:
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@@ -27,6 +27,17 @@ jobs:
|
|||||||
requirements-path: requirements.txt
|
requirements-path: requirements.txt
|
||||||
readme-path: README.md
|
readme-path: README.md
|
||||||
python-version: 3.11 # python version which will lint the package
|
python-version: 3.11 # python version which will lint the package
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: "3.11"
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: pip install -r requirements.txt
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: pytest
|
||||||
|
|
||||||
- name: Notify in telegram about fail
|
- name: Notify in telegram about fail
|
||||||
if: ${{ failure() }}
|
if: ${{ failure() }}
|
||||||
uses: appleboy/telegram-action@master
|
uses: appleboy/telegram-action@master
|
||||||
@@ -38,5 +49,6 @@ jobs:
|
|||||||
Commit message: ${{ github.event.commits[0].message }}
|
Commit message: ${{ github.event.commits[0].message }}
|
||||||
Repository: ${{ github.repository }}
|
Repository: ${{ github.repository }}
|
||||||
See changes: https://github.com/${{ github.repository }}/commit/${{github.sha}}
|
See changes: https://github.com/${{ github.repository }}/commit/${{github.sha}}
|
||||||
|
|
||||||
- name: Check fail
|
- name: Check fail
|
||||||
run: echo "Unreachable"
|
run: echo "Unreachable"
|
||||||
|
|||||||
Reference in New Issue
Block a user