Skip to content

Commit 22ec4fe

Browse files
authored
Merge pull request #11 from skrashevich/testing
Build && run testing CI
2 parents 34f6612 + e8f5286 commit 22ec4fe

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

Diff for: .github/workflows/test.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Test Build and Run Docker Image
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
pull_request:
8+
merge_group:
9+
workflow_dispatch:
10+
11+
jobs:
12+
build:
13+
strategy:
14+
matrix:
15+
platform:
16+
- amd64
17+
- arm64
18+
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: Check out code
23+
uses: actions/checkout@v3
24+
- name: Set up QEMU
25+
uses: docker/setup-qemu-action@v2
26+
- name: Set up Docker Buildx
27+
uses: docker/setup-buildx-action@v2
28+
- uses: docker/build-push-action@v2
29+
with:
30+
context: .
31+
push: false
32+
load: true
33+
tags: telegramus-test-${{ matrix.platform }}
34+
platforms: linux/${{ matrix.platform }}
35+
- run: |
36+
docker run --rm "telegramus-test-${{ matrix.platform }}" /app/telegramus --version

Diff for: main.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import Authenticator
2828
import BotHandler
2929

30-
TELEGRAMUS_VERSION = 'beta_1.6.0'
30+
TELEGRAMUS_VERSION = 'beta_1.6.1'
3131

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

9899

0 commit comments

Comments
 (0)