From acc6c921a52494a8c46d975d9dba18d8f793bade Mon Sep 17 00:00:00 2001 From: Jan Caha Date: Thu, 30 Nov 2023 09:35:57 +0100 Subject: [PATCH] test mergin client --- .github/workflows/tests_mergin_media_sync.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/tests_mergin_media_sync.yaml b/.github/workflows/tests_mergin_media_sync.yaml index 28cc23a..3cabdbf 100644 --- a/.github/workflows/tests_mergin_media_sync.yaml +++ b/.github/workflows/tests_mergin_media_sync.yaml @@ -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 @@ -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