-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 962 Bytes
/
Copy pathexamples-python.yml
File metadata and controls
34 lines (31 loc) · 962 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: examples-python
on:
push:
paths:
- "examples/python/**"
- ".github/workflows/examples-python.yml"
pull_request:
paths:
- "examples/python/**"
permissions:
contents: read
jobs:
python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.12"
- name: Compile and test the server
working-directory: examples/python/server
run: |
pip install -r requirements.txt
python -m py_compile server.py test_server.py
python -m unittest test_server.py
- name: Compile the client
working-directory: examples/python/client
run: |
pip install -r requirements.txt
python -m py_compile client.py crypto.py
python -m unittest test_crypto.py