Skip to content

Commit

Permalink
Merge pull request #11 from skrashevich/testing
Browse files Browse the repository at this point in the history
Build && run testing CI
  • Loading branch information
F33RNI authored Feb 21, 2023
2 parents 34f6612 + e8f5286 commit 22ec4fe
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Test Build and Run Docker Image

on:
push:
branches:
- '*'
pull_request:
merge_group:
workflow_dispatch:

jobs:
build:
strategy:
matrix:
platform:
- amd64
- arm64

runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- uses: docker/build-push-action@v2
with:
context: .
push: false
load: true
tags: telegramus-test-${{ matrix.platform }}
platforms: linux/${{ matrix.platform }}
- run: |
docker run --rm "telegramus-test-${{ matrix.platform }}" /app/telegramus --version
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import Authenticator
import BotHandler

TELEGRAMUS_VERSION = 'beta_1.6.0'
TELEGRAMUS_VERSION = 'beta_1.6.1'

# Logging level (INFO for debug, WARN for release)
LOGGING_LEVEL = logging.INFO
Expand Down Expand Up @@ -93,6 +93,7 @@ def parse_args():
default=os.getenv('TELEGRAMUS_SETTINGS_FILE', SETTINGS_FILE))
parser.add_argument('--messages', type=str, help='messages.json file location',
default=os.getenv('TELEGRAMUS_MESSAGES_FILE', MESSAGES_FILE))
parser.add_argument('--version', action='version', version=TELEGRAMUS_VERSION)
return parser.parse_args()


Expand Down

0 comments on commit 22ec4fe

Please sign in to comment.