Merge pull request 'dev test' (#3) from dev into main

Reviewed-on: #3
This commit is contained in:
2025-06-05 23:36:24 +03:00
2 changed files with 33 additions and 2 deletions

View File

@@ -17,11 +17,13 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
ref: dev ref: dev
- name: Lint the Dockerfile - name: Lint the Dockerfile
uses: hadolint/hadolint-action@v3.1.0 uses: hadolint/hadolint-action@v3.1.0
with: with:
dockerfile: Dockerfile 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 uses: Silleellie/pylint-github-action@v2.1
with: with:
lint-path: | lint-path: |
@@ -31,6 +33,7 @@ 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 - name: Set up Python
uses: actions/setup-python@v4 uses: actions/setup-python@v4
with: with:
@@ -49,10 +52,21 @@ jobs:
to: ${{ secrets.TELEGRAM_TO }} to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }} token: ${{ secrets.TELEGRAM_TOKEN }}
message: | message: |
${{ github.actor }} created commit: PyTest success
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"
- name: Notify in telegram about success
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}}

17
.github/workflows/docker-build.yaml vendored Normal file
View File

@@ -0,0 +1,17 @@
name: Build and push Docker image
on:
workflow_dispatch:
pull_request:
branches:
- main
types:
- closed
jobs:
if_merged:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- run: |
echo The PR was merged