From df2311b7fae26c5f8afa2fe7e958373913652453 Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Fri, 14 Apr 2023 17:50:05 +0530 Subject: [PATCH 01/37] feat: Test coverage and automate publish --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..adfb0202 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +name: CI +on: + push: + branches: + - master + tags: + - v[0-9]+.[0-9]+.[0-9]+* + pull_request: + branches: + - master +jobs: + test: + name: Run tests and publish test coverage + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3 + uses: actions/setup-python@v2 + with: + python-version: "3.10" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install responses + python3 setup.py install + python3 install coverage + - name: Run Tests + run: | + python3 -m unittest + python3 -m coverage report + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3 From 713b2ccc3ea11ef332aa1217b1d204cafc32d620 Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Fri, 14 Apr 2023 17:53:01 +0530 Subject: [PATCH 02/37] Update ci.yml --- .github/workflows/ci.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index adfb0202..b6bdf529 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,14 +19,14 @@ jobs: with: python-version: "3.10" - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install responses - python3 setup.py install - python3 install coverage + run: | + python -m pip install --upgrade pip + pip install responses + python3 setup.py install + python3 install coverage - name: Run Tests - run: | - python3 -m unittest - python3 -m coverage report + run: | + python3 -m unittest + python3 -m coverage report - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 From f41bab9920b9d9cf4c31f25d28ad2ba71d620f00 Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Fri, 14 Apr 2023 17:57:37 +0530 Subject: [PATCH 03/37] Update setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 2650ecef..36562c2c 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup( name="razorpay", - version="1.3.1", + version="1.3.0", description="Razorpay Python Client", long_description=readme_content, long_description_content_type='text/markdown', From dbf2c6a4e5c45853445da0aecfa6ded4db01c1b8 Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Fri, 14 Apr 2023 18:32:30 +0530 Subject: [PATCH 04/37] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b6bdf529..3ca97c26 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: run: | python -m pip install --upgrade pip pip install responses - python3 setup.py install + python3 ./../setup.py install python3 install coverage - name: Run Tests run: | From 805ebdc311315419abac0e6330706d9fbac13bec Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Fri, 14 Apr 2023 18:37:08 +0530 Subject: [PATCH 05/37] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3ca97c26..dd5f0b9b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: run: | python -m pip install --upgrade pip pip install responses - python3 ./../setup.py install + python3 ${{ github.workflow }}/setup.py install python3 install coverage - name: Run Tests run: | From 23b9c86a3c9b281205374bfe8228182de1c7b247 Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Fri, 14 Apr 2023 18:43:59 +0530 Subject: [PATCH 06/37] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dd5f0b9b..c0dcf67f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: run: | python -m pip install --upgrade pip pip install responses - python3 ${{ github.workflow }}/setup.py install + python3 ${{ github.workspace }}/setup.py install python3 install coverage - name: Run Tests run: | From 76d4b009e480b380bff6b13a07598eca3ee60c15 Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Fri, 14 Apr 2023 18:47:24 +0530 Subject: [PATCH 07/37] Update ci.yml --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c0dcf67f..cb671893 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,8 +22,8 @@ jobs: run: | python -m pip install --upgrade pip pip install responses - python3 ${{ github.workspace }}/setup.py install - python3 install coverage + python ${{ github.workspace }}/setup.py install + python install coverage - name: Run Tests run: | python3 -m unittest From 9021f939fac1945a195680247388d24eed986f48 Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Fri, 14 Apr 2023 18:49:41 +0530 Subject: [PATCH 08/37] Update ci.yml --- .github/workflows/ci.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cb671893..8b734d27 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,10 +23,3 @@ jobs: python -m pip install --upgrade pip pip install responses python ${{ github.workspace }}/setup.py install - python install coverage - - name: Run Tests - run: | - python3 -m unittest - python3 -m coverage report - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 From 7beb9f1f71639ef89f4acd77166aae50ed6f0e0a Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Fri, 14 Apr 2023 18:51:30 +0530 Subject: [PATCH 09/37] Update ci.yml --- .github/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8b734d27..1d36d167 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,4 +22,11 @@ jobs: run: | python -m pip install --upgrade pip pip install responses + pip install coverage python ${{ github.workspace }}/setup.py install + - name: Run Tests + run: | + python -m unittest + python -m coverage report + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3 From a980e2550a319bc12c10d75917f4c341408777d5 Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Fri, 14 Apr 2023 18:56:07 +0530 Subject: [PATCH 10/37] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1d36d167..01b4c681 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: python ${{ github.workspace }}/setup.py install - name: Run Tests run: | - python -m unittest + python -m coverage run -m unittest python -m coverage report - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 From 69a6035df2027b44ab398a876bb9564639c2426c Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Fri, 14 Apr 2023 19:03:14 +0530 Subject: [PATCH 11/37] Update ci.yml --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 01b4c681..078439ee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,3 +30,5 @@ jobs: python -m coverage report - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} From 3d6f157a79553ea847cd6383b2bec8ddd67a19b0 Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Fri, 14 Apr 2023 19:12:51 +0530 Subject: [PATCH 12/37] Update ci.yml --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 078439ee..83b4a733 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,6 +29,7 @@ jobs: python -m coverage run -m unittest python -m coverage report - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v2 with: token: ${{ secrets.CODECOV_TOKEN }} + version: "v0.1.15" From 132a40189ac5ab522bbe636793132ff4061981a5 Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Fri, 14 Apr 2023 19:19:22 +0530 Subject: [PATCH 13/37] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 83b4a733..81392620 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: - name: Run Tests run: | python -m coverage run -m unittest - python -m coverage report + python -m coverage xml - name: Upload coverage to Codecov uses: codecov/codecov-action@v2 with: From d9f36670a09844ee7d70786e13440609576e42ac Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Mon, 17 Apr 2023 11:27:37 +0530 Subject: [PATCH 14/37] Update ci.yml --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 81392620..1509c7f6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,3 +33,4 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} version: "v0.1.15" + files: ./coverage.xml From 5975254baed84f1f03662006f04b94612d6f601c Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Mon, 17 Apr 2023 16:00:40 +0530 Subject: [PATCH 15/37] Update setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 36562c2c..2650ecef 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup( name="razorpay", - version="1.3.0", + version="1.3.1", description="Razorpay Python Client", long_description=readme_content, long_description_content_type='text/markdown', From 63cd16efadbeede559cfb7cd3b400d95204e89c9 Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Mon, 17 Apr 2023 16:00:53 +0530 Subject: [PATCH 16/37] Update ci.yml --- .github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1509c7f6..f508c69f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,5 +32,4 @@ jobs: uses: codecov/codecov-action@v2 with: token: ${{ secrets.CODECOV_TOKEN }} - version: "v0.1.15" files: ./coverage.xml From 871f5769c07929f1475f8269d51ce81280d51769 Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Mon, 17 Apr 2023 16:36:16 +0530 Subject: [PATCH 17/37] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f508c69f..f22707e3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,4 +32,4 @@ jobs: uses: codecov/codecov-action@v2 with: token: ${{ secrets.CODECOV_TOKEN }} - files: ./coverage.xml + files: /home/runner/work/razorpay-python/razorpay-python/coverage.xml From 3d195d1eb6e96a26d87e5ba82d3a1dd6d6e05557 Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Mon, 17 Apr 2023 16:43:55 +0530 Subject: [PATCH 18/37] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f22707e3..bcf33c59 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,7 +29,7 @@ jobs: python -m coverage run -m unittest python -m coverage xml - name: Upload coverage to Codecov - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} files: /home/runner/work/razorpay-python/razorpay-python/coverage.xml From 1adb7a8d64daa1d32e8b3e57cb3329c15c2c75f3 Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Mon, 17 Apr 2023 16:48:18 +0530 Subject: [PATCH 19/37] Update ci.yml --- .github/workflows/ci.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bcf33c59..329ce85b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,6 +30,3 @@ jobs: python -m coverage xml - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: /home/runner/work/razorpay-python/razorpay-python/coverage.xml From 2c1e61e5b906782daa854e5ba2237c06f3b588c9 Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Wed, 19 Apr 2023 19:46:32 +0530 Subject: [PATCH 20/37] add publish job --- .github/workflows/ci.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 329ce85b..17ed99de 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,20 @@ on: branches: - master jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3 + uses: actions/setup-python@v2 + with: + python-version: "3.10" + - name: Install dependencies + run: | + python -m pip install --upgrade pip virtualenv + python -m build + test: name: Run tests and publish test coverage runs-on: ubuntu-latest @@ -30,3 +44,26 @@ jobs: python -m coverage xml - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 + + publish: + if: startsWith(github.ref, 'refs/tags/v') + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3 + uses: actions/setup-python@v2 + with: + python-version: "3.10" + - name: Install tools + run: make venv + - name: Publish packages to PyPi + run: | + set -ex + source venv/bin/activate + export VERSION=$(python3 setup.py --version) + python -m twine upload --verbose --repository testpypi dist/razorpay-$VERSION-py3-none-any.whl dist/razorpay-$VERSION.tar.gz + env: + TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }} + TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} + From 28be78055c5c0495360c9632b7fb0655a8a39747 Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Wed, 19 Apr 2023 19:48:50 +0530 Subject: [PATCH 21/37] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 17ed99de..3629cbc0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip virtualenv - python -m build + python setup.py clean --all sdist bdist_wheel --universal test: name: Run tests and publish test coverage From 20db8d7e5bf201a56603b5137836f7512c97e677 Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Wed, 19 Apr 2023 20:03:41 +0530 Subject: [PATCH 22/37] Update ci.yml --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3629cbc0..ab2a3834 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,9 +20,10 @@ jobs: python-version: "3.10" - name: Install dependencies run: | - python -m pip install --upgrade pip virtualenv + set -x + source venv/bin/activate python setup.py clean --all sdist bdist_wheel --universal - + python -m twine check dist/* test: name: Run tests and publish test coverage runs-on: ubuntu-latest From 95e9e64a809815f3b92f311f1ff3ea8303b63502 Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Wed, 19 Apr 2023 20:05:06 +0530 Subject: [PATCH 23/37] Update ci.yml --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ab2a3834..d4f497d2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,8 @@ jobs: uses: actions/setup-python@v2 with: python-version: "3.10" + - name: Install tools + run: make venv - name: Install dependencies run: | set -x From 479c618d8380d347c5325c25d79d4b1a8491ae7c Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Wed, 19 Apr 2023 20:15:37 +0530 Subject: [PATCH 24/37] Update ci.yml --- .github/workflows/ci.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d4f497d2..497af2ec 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,9 +17,7 @@ jobs: - name: Set up Python 3 uses: actions/setup-python@v2 with: - python-version: "3.10" - - name: Install tools - run: make venv + python-version: "3.10" - name: Install dependencies run: | set -x From 5cbf553c1ed52affe57b9f56bdd07bb1802b865f Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Wed, 19 Apr 2023 20:28:34 +0530 Subject: [PATCH 25/37] Update ci.yml --- .github/workflows/ci.yml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 497af2ec..c34f36b8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,26 +13,24 @@ jobs: name: Build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python 3 - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: - python-version: "3.10" + python-version: "3.x" - name: Install dependencies run: | - set -x - source venv/bin/activate - python setup.py clean --all sdist bdist_wheel --universal + python -m build python -m twine check dist/* test: name: Run tests and publish test coverage runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python 3 - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: - python-version: "3.10" + python-version: "3.x" - name: Install dependencies run: | python -m pip install --upgrade pip @@ -51,9 +49,9 @@ jobs: needs: build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python 3 - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: python-version: "3.10" - name: Install tools From 52462978d741225924e2bc24a320821c995b908d Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Wed, 19 Apr 2023 20:31:46 +0530 Subject: [PATCH 26/37] Update ci.yml --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c34f36b8..ab8c6ec1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,6 +20,8 @@ jobs: python-version: "3.x" - name: Install dependencies run: | + python -m pip install --upgrade pip + pip install build python -m build python -m twine check dist/* test: From 09eb13ebca2c029ffbca9e9b0ca2bfea135c2f08 Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Wed, 19 Apr 2023 20:34:09 +0530 Subject: [PATCH 27/37] Update ci.yml --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ab8c6ec1..4c1cd5b5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,6 +38,7 @@ jobs: python -m pip install --upgrade pip pip install responses pip install coverage + python -m pip install --upgrade twine python ${{ github.workspace }}/setup.py install - name: Run Tests run: | From 18ce0c2178881bac63d8bcaafde3aa4f5bf5a7ff Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Wed, 19 Apr 2023 20:39:11 +0530 Subject: [PATCH 28/37] Update ci.yml --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c1cd5b5..3755e8fc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,6 +23,7 @@ jobs: python -m pip install --upgrade pip pip install build python -m build + python -m pip install --upgrade twine python -m twine check dist/* test: name: Run tests and publish test coverage @@ -37,8 +38,7 @@ jobs: run: | python -m pip install --upgrade pip pip install responses - pip install coverage - python -m pip install --upgrade twine + pip install coverage python ${{ github.workspace }}/setup.py install - name: Run Tests run: | From 19e2f594b7fdfc0267f7eb71b2f53c672572b42d Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Thu, 20 Apr 2023 11:17:05 +0530 Subject: [PATCH 29/37] Update ci.yml --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3755e8fc..76c722d5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,6 +27,7 @@ jobs: python -m twine check dist/* test: name: Run tests and publish test coverage + needs: build runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -48,7 +49,7 @@ jobs: uses: codecov/codecov-action@v3 publish: - if: startsWith(github.ref, 'refs/tags/v') + #if: startsWith(github.ref, 'refs/tags/v') needs: build runs-on: ubuntu-latest steps: From 58107860e31a8db263c0fccfc3809ba7affe35e9 Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Thu, 20 Apr 2023 13:25:39 +0530 Subject: [PATCH 30/37] Update ci.yml --- .github/workflows/ci.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 76c722d5..3715054a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -58,12 +58,9 @@ jobs: uses: actions/setup-python@v3 with: python-version: "3.10" - - name: Install tools - run: make venv - name: Publish packages to PyPi run: | set -ex - source venv/bin/activate export VERSION=$(python3 setup.py --version) python -m twine upload --verbose --repository testpypi dist/razorpay-$VERSION-py3-none-any.whl dist/razorpay-$VERSION.tar.gz env: From 0aad5d0ff017fb20cb8f063cb01efae4cc4b6802 Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Thu, 20 Apr 2023 13:31:03 +0530 Subject: [PATCH 31/37] Update ci.yml --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3715054a..4d83fd1d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ jobs: python-version: "3.x" - name: Install dependencies run: | - python -m pip install --upgrade pip + python -m pip install --upgrade pip pip install build python -m build python -m pip install --upgrade twine @@ -57,9 +57,10 @@ jobs: - name: Set up Python 3 uses: actions/setup-python@v3 with: - python-version: "3.10" + python-version: "3.x" - name: Publish packages to PyPi run: | + python -m pip install --upgrade twine set -ex export VERSION=$(python3 setup.py --version) python -m twine upload --verbose --repository testpypi dist/razorpay-$VERSION-py3-none-any.whl dist/razorpay-$VERSION.tar.gz From 748894dbb2f860a22827a776203bb304d3d411d1 Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Thu, 20 Apr 2023 13:38:58 +0530 Subject: [PATCH 32/37] Update ci.yml --- .github/workflows/ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4d83fd1d..13809534 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,6 +25,12 @@ jobs: python -m build python -m pip install --upgrade twine python -m twine check dist/* + + - name: 'Upload Artifact' + uses: actions/upload-artifact@v2 + with: + name: dist + path: dist/ test: name: Run tests and publish test coverage needs: build @@ -54,6 +60,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: actions/checkout@v2 + - name: Download all workflow run artifacts + uses: actions/download-artifact@v2 + with: + name: dist + path: dist - name: Set up Python 3 uses: actions/setup-python@v3 with: From cd4137a6a97c016b4daec620ebc4d0a5d5c7c740 Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Thu, 20 Apr 2023 14:14:08 +0530 Subject: [PATCH 33/37] Update ci.yml --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 13809534..637ab0a1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,10 +56,9 @@ jobs: publish: #if: startsWith(github.ref, 'refs/tags/v') - needs: build + needs: test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - uses: actions/checkout@v2 - name: Download all workflow run artifacts uses: actions/download-artifact@v2 From d7ab432dbd36b2b873c8e2ed6955e4fee9b76393 Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Thu, 20 Apr 2023 14:24:15 +0530 Subject: [PATCH 34/37] Update ci.yml --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 637ab0a1..97619ee2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,7 @@ jobs: name: dist path: dist/ test: - name: Run tests and publish test coverage + name: Test Coverage needs: build runs-on: ubuntu-latest steps: @@ -55,7 +55,7 @@ jobs: uses: codecov/codecov-action@v3 publish: - #if: startsWith(github.ref, 'refs/tags/v') + if: startsWith(github.ref, 'refs/tags/v') needs: test runs-on: ubuntu-latest steps: From 9b97553cab85fea0cf2722bb4caeec1822097cbf Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Thu, 20 Apr 2023 14:38:56 +0530 Subject: [PATCH 35/37] Python 3.10 workflow test --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 97619ee2..eaab927c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: - name: Set up Python 3 uses: actions/setup-python@v3 with: - python-version: "3.x" + python-version: "3.10" - name: Install dependencies run: | python -m pip install --upgrade pip @@ -40,7 +40,7 @@ jobs: - name: Set up Python 3 uses: actions/setup-python@v3 with: - python-version: "3.x" + python-version: "3.10" - name: Install dependencies run: | python -m pip install --upgrade pip @@ -55,7 +55,7 @@ jobs: uses: codecov/codecov-action@v3 publish: - if: startsWith(github.ref, 'refs/tags/v') + #if: startsWith(github.ref, 'refs/tags/v') needs: test runs-on: ubuntu-latest steps: @@ -68,7 +68,7 @@ jobs: - name: Set up Python 3 uses: actions/setup-python@v3 with: - python-version: "3.x" + python-version: "3.10" - name: Publish packages to PyPi run: | python -m pip install --upgrade twine From 72f301b2093b067fc395366f9f3589352a985970 Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Thu, 20 Apr 2023 14:42:52 +0530 Subject: [PATCH 36/37] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eaab927c..9002a071 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,7 +55,7 @@ jobs: uses: codecov/codecov-action@v3 publish: - #if: startsWith(github.ref, 'refs/tags/v') + if: startsWith(github.ref, 'refs/tags/v') needs: test runs-on: ubuntu-latest steps: From 1e3357df7e44992062a2b0b48db526fe79448eda Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Thu, 27 Apr 2023 15:32:44 +0530 Subject: [PATCH 37/37] remove testpypi --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9002a071..de5afd47 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -74,7 +74,7 @@ jobs: python -m pip install --upgrade twine set -ex export VERSION=$(python3 setup.py --version) - python -m twine upload --verbose --repository testpypi dist/razorpay-$VERSION-py3-none-any.whl dist/razorpay-$VERSION.tar.gz + python -m twine upload --verbose dist/razorpay-$VERSION-py3-none-any.whl dist/razorpay-$VERSION.tar.gz env: TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }} TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}