Skip to content

Commit a4ab407

Browse files
committed
Added a simple client test
Signed-off-by: simonmicro <[email protected]>
1 parent 2cd7fde commit a4ab407

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Test basic client
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
7+
jobs:
8+
run-test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v5
13+
- name: Set up Python
14+
uses: actions/setup-python@v4
15+
with:
16+
python-version: "3.11"
17+
- name: Install dependencies
18+
run: |
19+
python -m pip install --upgrade pip
20+
pip install -r requirements.txt
21+
- name: Run tests
22+
run: |
23+
cd py-kms; timeout 30 python3 pykms_Server.py -F STDOUT -s ./pykms_database.db &
24+
sleep 5
25+
python3 pykms_Client.py -F STDOUT # fresh client
26+
python3 pykms_Client.py -F STDOUT -c 174f5409-0624-4ce3-b209-adde1091956b # (maybe) existing client
27+
python3 pykms_Client.py -F STDOUT -c 174f5409-0624-4ce3-b209-adde1091956b # now-for-sure existing client

0 commit comments

Comments
 (0)