mirror of
https://github.com/Py-KMS-Organization/py-kms.git
synced 2026-01-24 09:00:17 +01:00
Added a simple client test
Signed-off-by: simonmicro <simon@simonmicro.de>
This commit is contained in:
parent
f53bbd4f6a
commit
da80390b73
27
.github/workflows/test_basic_client.yml
vendored
Normal file
27
.github/workflows/test_basic_client.yml
vendored
Normal 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
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
name: Test-Build Docker Image
|
||||
name: "Test: Build Docker Image"
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
Loading…
Reference in a new issue