From 48c9cd21db797e7d990bd0463b7f0c66c0123898 Mon Sep 17 00:00:00 2001 From: VMalmo Date: Fri, 17 Feb 2023 16:41:41 -0800 Subject: [PATCH 1/9] Create main.yml --- .github/workflows/main.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..74efc84 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,24 @@ +name: Tests + +on: + push: + branches-ignore: [master, main] + pull_request: + branches: [master, main] + +env: + DIR: tests + +jobs: + test: + name: Run tests + runs-on: ubuntu-latest + steps: + - name: Check-out repository + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Run tests + run: python ${{ env.DIR }}/test_sdk.py + shell: sh From 669db5a01e8d49b1229a57d7a6accec77bae7ba9 Mon Sep 17 00:00:00 2001 From: Vitaly Vakhteev Date: Fri, 17 Feb 2023 16:48:08 -0800 Subject: [PATCH 2/9] fix --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 74efc84..eb5898e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,5 +20,6 @@ jobs: fetch-depth: 0 - name: Run tests - run: python ${{ env.DIR }}/test_sdk.py + run: pip install -r requirements.txt + python ${{ env.DIR }}/test_sdk.py shell: sh From 74c252a739ff5a04ed5f902d4c980d7c47c7911b Mon Sep 17 00:00:00 2001 From: Vitaly Vakhteev Date: Fri, 17 Feb 2023 16:49:54 -0800 Subject: [PATCH 3/9] fix --- .github/workflows/main.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index eb5898e..da5b9f0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,7 +19,10 @@ jobs: with: fetch-depth: 0 - - name: Run tests + - name: Install requirements run: pip install -r requirements.txt - python ${{ env.DIR }}/test_sdk.py + shell: sh + + - name: Run tests + run: python ${{ env.DIR }}/test_sdk.py shell: sh From 5e99fe663c10dbce0438ee13c15406eac917f0b7 Mon Sep 17 00:00:00 2001 From: Vitaly Vakhteev Date: Fri, 17 Feb 2023 16:53:33 -0800 Subject: [PATCH 4/9] fix requirements --- requirements.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/requirements.txt b/requirements.txt index 21fd9b6..1777f59 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,5 @@ aiohttp==3.7.4.post0 ujson==4.0.2 pydantic==1.8.2 +pytest==7.2.1 +dotenv==0.0.5 \ No newline at end of file From 809b65cc986b96108749af8b8f1ead081e2f06e0 Mon Sep 17 00:00:00 2001 From: Vitaly Vakhteev Date: Fri, 17 Feb 2023 16:55:37 -0800 Subject: [PATCH 5/9] fix requirements, main.yml --- .github/workflows/main.yml | 5 +++++ requirements.txt | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index da5b9f0..2477725 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,6 +23,11 @@ jobs: run: pip install -r requirements.txt shell: sh + - name: Install dev requirements + run: pip install -r requirements_dev.txt + shell: sh + + - name: Run tests run: python ${{ env.DIR }}/test_sdk.py shell: sh diff --git a/requirements.txt b/requirements.txt index 1777f59..ec45eeb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,3 @@ aiohttp==3.7.4.post0 ujson==4.0.2 -pydantic==1.8.2 -pytest==7.2.1 -dotenv==0.0.5 \ No newline at end of file +pydantic==1.8.2 \ No newline at end of file From a7d8cc1807f061b42bcf05b00c57821505f44393 Mon Sep 17 00:00:00 2001 From: Vitaly Vakhteev Date: Fri, 17 Feb 2023 16:59:20 -0800 Subject: [PATCH 6/9] fix for pipeline --- requirements.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index ec45eeb..75d174b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ aiohttp==3.7.4.post0 ujson==4.0.2 -pydantic==1.8.2 \ No newline at end of file +pydantic==1.8.2 +dexguru-sdk==0.2.6 \ No newline at end of file From 3c7c0345764e2b729c0e638173b246ac740462d3 Mon Sep 17 00:00:00 2001 From: Vitaly Vakhteev Date: Fri, 17 Feb 2023 17:01:36 -0800 Subject: [PATCH 7/9] test --- dexguru_sdk/client/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dexguru_sdk/client/__init__.py b/dexguru_sdk/client/__init__.py index e69de29..77e532a 100644 --- a/dexguru_sdk/client/__init__.py +++ b/dexguru_sdk/client/__init__.py @@ -0,0 +1 @@ +# ignore \ No newline at end of file From 9dc4cc24226c07c8ec9e91cf9cb9c843df13bd30 Mon Sep 17 00:00:00 2001 From: Vitaly Vakhteev Date: Fri, 17 Feb 2023 17:03:53 -0800 Subject: [PATCH 8/9] Fix --- .github/workflows/main.yml | 2 -- dexguru_sdk/client/__init__.py | 1 - 2 files changed, 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 74efc84..52e9af1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,8 +1,6 @@ name: Tests on: - push: - branches-ignore: [master, main] pull_request: branches: [master, main] diff --git a/dexguru_sdk/client/__init__.py b/dexguru_sdk/client/__init__.py index 77e532a..e69de29 100644 --- a/dexguru_sdk/client/__init__.py +++ b/dexguru_sdk/client/__init__.py @@ -1 +0,0 @@ -# ignore \ No newline at end of file From c97072112e121d48d6a9fdfb796555430c69a2fd Mon Sep 17 00:00:00 2001 From: Vitaly Vakhteev Date: Fri, 17 Feb 2023 17:09:10 -0800 Subject: [PATCH 9/9] Remove unnecessary env --- .github/workflows/main.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 58a5f03..766a330 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,9 +4,6 @@ on: pull_request: branches: [master, main] -env: - DIR: tests - jobs: test: name: Run tests @@ -27,5 +24,5 @@ jobs: - name: Run tests - run: python ${{ env.DIR }}/test_sdk.py + run: python tests/test_sdk.py shell: sh