From 91b713e010d79e2c481863a045eb91a1f13dfded Mon Sep 17 00:00:00 2001 From: safinsaf Date: Thu, 16 Jun 2022 17:03:12 +0300 Subject: [PATCH 01/13] Update workflow Signed-off-by: safinsaf --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 06b266f5..c5a045b6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,5 +14,7 @@ jobs: run: pip install -r requirements.txt - name: Run tests and collect coverage run: pytest --cov app + - name: Debug + run: ls -al . - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 From f1ebeb03bcd2193a2823d8ba3688616edc4a1be6 Mon Sep 17 00:00:00 2001 From: safinsaf Date: Thu, 16 Jun 2022 17:09:41 +0300 Subject: [PATCH 02/13] Update workflow Signed-off-by: safinsaf --- .github/workflows/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c5a045b6..4b125358 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,3 +18,11 @@ jobs: run: ls -al . - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 + - name: Copy a file to s3 + uses: prewk/s3-cp-action@v2 + with: + aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + source: 'coverage.xml' + dest: 's3://infra-prod-docs/hyperledger/iroha2/codecov/coverage.xml' + From 33946dd23429d575427db406e81aa8e7b1f4d9ac Mon Sep 17 00:00:00 2001 From: safinsaf Date: Thu, 16 Jun 2022 17:19:42 +0300 Subject: [PATCH 03/13] Update workflow Signed-off-by: safinsaf --- .github/workflows/ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4b125358..e911e34e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,15 @@ jobs: python-version: '3.10' - name: Install dependencies run: pip install -r requirements.txt + - name: Copy a file from s3 + uses: prewk/s3-cp-action@v2 + with: + aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + source: 's3://infra-prod-docs/hyperledger/iroha2/codecov/coverage.xml' + dest: 'coverage.xml' + - name: Debug + run: ls -al . - name: Run tests and collect coverage run: pytest --cov app - name: Debug From 850a1cc21cdd3ef86fcd2a50d4d0be033d5c49dd Mon Sep 17 00:00:00 2001 From: safinsaf Date: Thu, 16 Jun 2022 17:36:08 +0300 Subject: [PATCH 04/13] Update workflow Signed-off-by: safinsaf --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e911e34e..50c0d771 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,6 +13,7 @@ jobs: - name: Install dependencies run: pip install -r requirements.txt - name: Copy a file from s3 + id: copy uses: prewk/s3-cp-action@v2 with: aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }} @@ -22,6 +23,7 @@ jobs: - name: Debug run: ls -al . - name: Run tests and collect coverage + if: steps.copy.outputs.outcome != "success" run: pytest --cov app - name: Debug run: ls -al . From 61693a55007deed7af5b84ef1dd14fa134d07ac6 Mon Sep 17 00:00:00 2001 From: safinsaf Date: Thu, 16 Jun 2022 17:37:40 +0300 Subject: [PATCH 05/13] Update workflow Signed-off-by: safinsaf --- .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 50c0d771..6337fdfd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,7 @@ jobs: - name: Debug run: ls -al . - name: Run tests and collect coverage - if: steps.copy.outputs.outcome != "success" + if: steps.copy.outputs.outcome != 'success' run: pytest --cov app - name: Debug run: ls -al . From ce6cb7e126a5c7abaa73aca74a445aad924545c0 Mon Sep 17 00:00:00 2001 From: safinsaf Date: Thu, 16 Jun 2022 17:52:01 +0300 Subject: [PATCH 06/13] Update workflow Signed-off-by: safinsaf --- .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 6337fdfd..30da9178 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ jobs: with: aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - source: 's3://infra-prod-docs/hyperledger/iroha2/codecov/coverage.xml' + source: 's3://infra-prod-docs/hyperledger/iroha2/codecov/coverage1.xml' dest: 'coverage.xml' - name: Debug run: ls -al . From ed14f100a2782f7d141b55c7711ed61057d57da2 Mon Sep 17 00:00:00 2001 From: safinsaf Date: Thu, 16 Jun 2022 17:54:53 +0300 Subject: [PATCH 07/13] Update workflow Signed-off-by: safinsaf --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 30da9178..d8f1fb6e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,6 +15,7 @@ jobs: - name: Copy a file from s3 id: copy uses: prewk/s3-cp-action@v2 + continue-on-error: true with: aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} From f7ea31cab8b5e0991cc12bb7a56c0ddd0a62b050 Mon Sep 17 00:00:00 2001 From: safinsaf Date: Thu, 16 Jun 2022 17:58:47 +0300 Subject: [PATCH 08/13] Update workflow Signed-off-by: safinsaf --- .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 d8f1fb6e..2b7a51f4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: - name: Debug run: ls -al . - name: Run tests and collect coverage - if: steps.copy.outputs.outcome != 'success' + if: steps.copy.outputs.output != 'success' run: pytest --cov app - name: Debug run: ls -al . From 43d26b337b389e63147b1f6c95d4e1d94a7225b2 Mon Sep 17 00:00:00 2001 From: safinsaf Date: Thu, 23 Jun 2022 09:51:46 +0300 Subject: [PATCH 09/13] Update with hash and check file Signed-off-by: safinsaf --- .github/workflows/ci.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2b7a51f4..bb3357f7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,11 @@ jobs: python-version: '3.10' - name: Install dependencies run: pip install -r requirements.txt + - name: Copy dependencies + uses: theowenyoung/folder-hash@v2.0.1 + with: + path: | + . - name: Copy a file from s3 id: copy uses: prewk/s3-cp-action@v2 @@ -21,10 +26,15 @@ jobs: aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} source: 's3://infra-prod-docs/hyperledger/iroha2/codecov/coverage1.xml' dest: 'coverage.xml' + - name: Check coverage file existence + id: check_files + uses: andstor/file-existence-action@v1 + with: + files: "coverage.xml" - name: Debug run: ls -al . - name: Run tests and collect coverage - if: steps.copy.outputs.output != 'success' + if: steps.check_files.outputs.files_exists == 'false' run: pytest --cov app - name: Debug run: ls -al . From d3fc3362682096f493c3b503743ca016818a6bf3 Mon Sep 17 00:00:00 2001 From: safinsaf Date: Thu, 23 Jun 2022 10:00:53 +0300 Subject: [PATCH 10/13] Use hashes Signed-off-by: safinsaf --- .github/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bb3357f7..87cf1c89 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,8 @@ jobs: python-version: '3.10' - name: Install dependencies run: pip install -r requirements.txt - - name: Copy dependencies + - name: Find hash + id: hash uses: theowenyoung/folder-hash@v2.0.1 with: path: | @@ -24,7 +25,7 @@ jobs: with: aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - source: 's3://infra-prod-docs/hyperledger/iroha2/codecov/coverage1.xml' + source: 's3://infra-prod-docs/hyperledger/iroha2/codecov/coverage-{{ steps.hash.outputs.hash }}.xml' dest: 'coverage.xml' - name: Check coverage file existence id: check_files @@ -46,5 +47,5 @@ jobs: aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} source: 'coverage.xml' - dest: 's3://infra-prod-docs/hyperledger/iroha2/codecov/coverage.xml' + dest: 's3://infra-prod-docs/hyperledger/iroha2/codecov/coverage-{{ steps.hash.outputs.hash }}.xml' From 082b6d69326536b20b98e9f6384e57a669dc9c96 Mon Sep 17 00:00:00 2001 From: safinsaf Date: Thu, 23 Jun 2022 10:03:55 +0300 Subject: [PATCH 11/13] Fix file-hash Signed-off-by: safinsaf --- .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 87cf1c89..4a232467 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,7 @@ jobs: with: aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - source: 's3://infra-prod-docs/hyperledger/iroha2/codecov/coverage-{{ steps.hash.outputs.hash }}.xml' + source: 's3://infra-prod-docs/hyperledger/iroha2/codecov/coverage-${{ steps.hash.outputs.hash }}.xml' dest: 'coverage.xml' - name: Check coverage file existence id: check_files @@ -47,5 +47,5 @@ jobs: aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} source: 'coverage.xml' - dest: 's3://infra-prod-docs/hyperledger/iroha2/codecov/coverage-{{ steps.hash.outputs.hash }}.xml' + dest: 's3://infra-prod-docs/hyperledger/iroha2/codecov/coverage-${{ steps.hash.outputs.hash }}.xml' From 019384ba3f78de34fdbe22150aaf0dafa1d13790 Mon Sep 17 00:00:00 2001 From: safinsaf Date: Thu, 23 Jun 2022 10:08:19 +0300 Subject: [PATCH 12/13] New branch for pull request Signed-off-by: safinsaf --- file.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 file.txt diff --git a/file.txt b/file.txt new file mode 100644 index 00000000..e69de29b From 0f54f0aac80d943985926493ac819608334eb801 Mon Sep 17 00:00:00 2001 From: safinsaf Date: Tue, 2 Aug 2022 10:19:14 +0300 Subject: [PATCH 13/13] Change to PRT Signed-off-by: safinsaf --- .github/workflows/ci.yml | 35 +++-------------------------------- 1 file changed, 3 insertions(+), 32 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4a232467..f1e6a105 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,7 @@ name: Workflow for Codecov example-python -on: [push, pull_request] +on: + pull_request_target: + branches: [main, support/1.*, edge, develop] jobs: run: runs-on: ubuntu-latest @@ -18,34 +20,3 @@ jobs: with: path: | . - - name: Copy a file from s3 - id: copy - uses: prewk/s3-cp-action@v2 - continue-on-error: true - with: - aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - source: 's3://infra-prod-docs/hyperledger/iroha2/codecov/coverage-${{ steps.hash.outputs.hash }}.xml' - dest: 'coverage.xml' - - name: Check coverage file existence - id: check_files - uses: andstor/file-existence-action@v1 - with: - files: "coverage.xml" - - name: Debug - run: ls -al . - - name: Run tests and collect coverage - if: steps.check_files.outputs.files_exists == 'false' - run: pytest --cov app - - name: Debug - run: ls -al . - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 - - name: Copy a file to s3 - uses: prewk/s3-cp-action@v2 - with: - aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - source: 'coverage.xml' - dest: 's3://infra-prod-docs/hyperledger/iroha2/codecov/coverage-${{ steps.hash.outputs.hash }}.xml' - pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy