Added a simple client test

Signed-off-by: simonmicro <simon@simonmicro.de>
This commit is contained in:
simonmicro 2025-12-06 21:01:24 +01:00
parent f53bbd4f6a
commit da80390b73
No known key found for this signature in database
GPG key ID: 033A4D4CE4E063D6
2 changed files with 28 additions and 1 deletions

27
.github/workflows/test_basic_client.yml vendored Normal file
View file

@ -0,0 +1,27 @@
name: "Test: Basic Client"
on:
workflow_dispatch:
push:
jobs:
run-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
run: |
cd py-kms; timeout 30 python3 pykms_Server.py -F STDOUT -s ./pykms_database.db &
sleep 5
python3 pykms_Client.py -F STDOUT # fresh client
python3 pykms_Client.py -F STDOUT -c 174f5409-0624-4ce3-b209-adde1091956b # (maybe) existing client
python3 pykms_Client.py -F STDOUT -c 174f5409-0624-4ce3-b209-adde1091956b # now-for-sure existing client

View file

@ -1,4 +1,4 @@
name: Test-Build Docker Image
name: "Test: Build Docker Image"
on:
workflow_dispatch: