some fixes
All checks were successful
CI-pipeline / linters (push) Successful in 35s

This commit is contained in:
Basyrov Rustam
2025-06-05 23:32:19 +03:00
parent 854fe0fbc4
commit 89be942588

View File

@@ -17,12 +17,13 @@ jobs:
uses: actions/checkout@v4
with:
ref: dev
- name: Lint the Dockerfile
uses: hadolint/hadolint-action@v3.1.0
with:
dockerfile: Dockerfile
- name: Lint the source code
- name: Lint the source code # TODO: use pylint from pip -- it can fail
uses: Silleellie/pylint-github-action@v2.1
with:
lint-path: |
@@ -32,15 +33,41 @@ jobs:
requirements-path: requirements.txt
readme-path: README.md
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: Notify in telegram about success
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run tests
run: pytest
- name: Notify in telegram about fail
if: ${{ failure() }}
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
message: |
PyTest successed
PyTest success
Commit message: ${{ github.event.commits[0].message }}
Repository: ${{ github.repository }}
See changes: https://github.com/${{ github.repository }}/commit/${{github.sha}}
- name: Check fail
run: echo "Unreachable"
- name: Notify in telegram about success
if: ${{ failure() }}
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
message: |
Workflow success
Commit message: ${{ github.event.commits[0].message }}
Repository: ${{ github.repository }}
See changes: https://github.com/${{ github.repository }}/commit/${{github.sha}}