add tests to pytest
Some checks failed
CI-pipeline / linters (push) Failing after 50s

This commit is contained in:
Basyrov Rustam
2025-06-05 23:01:51 +03:00
parent 6be0920cf8
commit 0e40347a66

View File

@@ -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"