-
Notifications
You must be signed in to change notification settings - Fork 10
43 lines (41 loc) · 1.06 KB
/
python.yml
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
35
36
37
38
39
40
41
42
43
name: immudb examples Python
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
container-job:
runs-on: ubuntu-latest
services:
immudb:
image: codenotary/immudb:latest
ports:
- 3322:3322
steps:
- uses: actions/checkout@v1
- name: Setup runner for Python
run: |
sudo apt-get update
sudo apt-get install -y python3-pip
- name: Install Python SDK
run: |
pip install immudb-py
- name: Run examples
run: |
for f in *.py
do
echo "Processing $f"
python "$f"
# force index to be up to date
python -c "from immudb.client import ImmudbClient; c= ImmudbClient(); c.login('immudb', 'immudb'); s = c.currentState(); c.scan(None, b'dummy', True, 1, sinceTx=s.txId)"
done
working-directory: ./python
- name: Run linter (pep8)
run : |
pip install autopep8
export PATH="$HOME/.local/bin":$PATH
autopep8 --exit-code --diff *.py
working-directory: ./python