Skip to content

Commit

Permalink
test mergin client
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Caha committed Nov 30, 2023
1 parent 4ac9e7f commit acc6c92
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/tests_mergin_media_sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
- ".github/workflows/tests_mergin_media_sync.yaml"

env:
TEST_MERGIN_URL: https://test.dev.merginmaps.com
TEST_API_USERNAME: test_media_sync
TEST_API_PASSWORD: ${{ secrets.TEST_API_PASSWORD }}
TEST_API_WORKSPACE: test-media-sync
TEST_MINIO_URL: 127.0.0.1:9000
TEST_MINIO_ACCESS_KEY: minioaccesskey
TEST_MINIO_SECRET_KEY: miniosecretkey

Expand Down Expand Up @@ -49,6 +54,16 @@ jobs:
print(client.list_buckets())
- name: Test Mergin Client
shell: python3 {0}
run: |
import os
from mergin import MerginClient
MerginClient(os.environ.get('TEST_MERGIN_URL'),
login=os.environ.get('TEST_API_USERNAME'),
password=os.environ.get('TEST_API_PASSWORD'))
# - name: Install Geodiff
# run: |
# sudo apt-get install libsqlite3-dev libpq-dev
Expand Down

0 comments on commit acc6c92

Please sign in to comment.