From 1c5be70496eae2ebbcb9e8c9f160ccc734f45bff Mon Sep 17 00:00:00 2001 From: Guy Pilosof Date: Tue, 28 Jun 2022 00:25:51 +0300 Subject: [PATCH 01/12] try to upload python package as artifact --- .github/workflows/ci.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b05110fba..745afc247 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -51,3 +51,13 @@ jobs: - name: Tests run: | python -m pytest tests/* + + - name: Build package + run: | + python -m build + + - name: + - uses: actions/upload-artifact@v3 + with: + name: descope-auth-0.0.1.tar.gz + path: ./dist/descope-auth-0.0.1.tar.gz From 4a683a5227e440d36dfd7edf03fe194e1d58a075 Mon Sep 17 00:00:00 2001 From: Guy Pilosof Date: Tue, 28 Jun 2022 00:27:26 +0300 Subject: [PATCH 02/12] fix yaml file --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 745afc247..94a11b4fa 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -57,7 +57,7 @@ jobs: python -m build - name: - - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v3 with: name: descope-auth-0.0.1.tar.gz path: ./dist/descope-auth-0.0.1.tar.gz From c45bc6c963c0ad1cd2752ba9684f37a2fda5f193 Mon Sep 17 00:00:00 2001 From: Guy Pilosof Date: Tue, 28 Jun 2022 00:31:34 +0300 Subject: [PATCH 03/12] add build package as build requirement --- requirements-dev.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements-dev.txt b/requirements-dev.txt index c041d7838..627da2dfc 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -9,3 +9,4 @@ cryptography pytest-cov email-validator liccheck +build From 23d7b227e3bed8fb7fa09dd39ea67e7b9d86a5f3 Mon Sep 17 00:00:00 2001 From: Guy Pilosof Date: Tue, 28 Jun 2022 00:34:49 +0300 Subject: [PATCH 04/12] python3 --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 94a11b4fa..d413debcf 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -54,7 +54,7 @@ jobs: - name: Build package run: | - python -m build + python3 -m build - name: uses: actions/upload-artifact@v3 From 699f6e9c799b0ae3e63e2a997694104063ac1c8c Mon Sep 17 00:00:00 2001 From: Guy Pilosof Date: Tue, 28 Jun 2022 00:44:12 +0300 Subject: [PATCH 05/12] debug (wip) --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d413debcf..caeed9f62 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -54,7 +54,7 @@ jobs: - name: Build package run: | - python3 -m build + pwd && python3 -m build - name: uses: actions/upload-artifact@v3 From aab43ba016dcd057c4a33f8a3ad27d4f63332989 Mon Sep 17 00:00:00 2001 From: Guy Pilosof Date: Tue, 28 Jun 2022 00:47:42 +0300 Subject: [PATCH 06/12] debug (wip) --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index caeed9f62..9827dc37d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -54,7 +54,7 @@ jobs: - name: Build package run: | - pwd && python3 -m build + python3 -m build . - name: uses: actions/upload-artifact@v3 From 743cb76038c5deb3f52ba9da8193697e110a97a7 Mon Sep 17 00:00:00 2001 From: Guy Pilosof Date: Tue, 28 Jun 2022 00:55:45 +0300 Subject: [PATCH 07/12] debug (wip) --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9827dc37d..94a11b4fa 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -54,7 +54,7 @@ jobs: - name: Build package run: | - python3 -m build . + python -m build - name: uses: actions/upload-artifact@v3 From 1cbd2b838616c80943135173b9a1eedc81365900 Mon Sep 17 00:00:00 2001 From: Guy Pilosof Date: Tue, 28 Jun 2022 01:22:59 +0300 Subject: [PATCH 08/12] debug (wip) --- .github/workflows/ci.yaml | 1 + requirements-dev.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 94a11b4fa..a7eda607d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -54,6 +54,7 @@ jobs: - name: Build package run: | + mkdir src python -m build - name: diff --git a/requirements-dev.txt b/requirements-dev.txt index 627da2dfc..ed4d4e28d 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -10,3 +10,4 @@ pytest-cov email-validator liccheck build +setuptools From 55fb6ce25f4ed10ee1a175b5d0ba3849d7903e83 Mon Sep 17 00:00:00 2001 From: Guy Pilosof Date: Tue, 28 Jun 2022 17:27:03 +0300 Subject: [PATCH 09/12] debug (wip) --- .github/workflows/ci.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a7eda607d..9e8348e5d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -57,8 +57,12 @@ jobs: mkdir src python -m build - - name: + - name: Upload artifact uses: actions/upload-artifact@v3 with: name: descope-auth-0.0.1.tar.gz path: ./dist/descope-auth-0.0.1.tar.gz + + - name: repo name + run: echo '${{ github.repository }}' + shell: bash From 3fc7784a8337ce1ee69caaf143c6ee5a802c10ba Mon Sep 17 00:00:00 2001 From: Guy Pilosof Date: Wed, 29 Jun 2022 09:47:20 +0300 Subject: [PATCH 10/12] debug (wip) --- .github/workflows/ci.yaml | 34 +++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9e8348e5d..7c76db253 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -63,6 +63,34 @@ jobs: name: descope-auth-0.0.1.tar.gz path: ./dist/descope-auth-0.0.1.tar.gz - - name: repo name - run: echo '${{ github.repository }}' - shell: bash + - name: Download artifact + uses: dawidd6/action-download-artifact@v2 + with: + # Optional, GitHub token, a Personal Access Token with `public_repo` scope if needed + # Required, if artifact is from a different repo + # Required, if repo is private a Personal Access Token with `repo` scope is needed + github_token: ${{secrets.GITHUB_TOKEN}} + # Required, workflow file name or ID + workflow: ci.yml + # Optional, the status or conclusion of a completed workflow to search for + # Can be one of a workflow conclusion: + # "failure", "success", "neutral", "cancelled", "skipped", "timed_out", "action_required" + # Or a workflow status: + # "completed", "in_progress", "queued" + workflow_conclusion: success + # Optional, will use the branch + branch: upload-artifacts + # Optional, defaults to all types + event: push + # Optional, uploaded artifact name, + # will download all artifacts if not specified + # and extract them in respective subdirectories + # https://github.com/actions/download-artifact#download-all-artifacts + name: descope-auth-0.0.1.tar.gz + # Optional, defaults to current repo + #descope/python-sdk + repo: descope/python-sdk + + - name: Check artifact + run: | + ls -l From 5a448e0cc0f404865cc6b3007190dc86522e0351 Mon Sep 17 00:00:00 2001 From: Guy Pilosof Date: Wed, 29 Jun 2022 09:55:11 +0300 Subject: [PATCH 11/12] debug (wip) --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7c76db253..e637c0d4b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -71,7 +71,7 @@ jobs: # Required, if repo is private a Personal Access Token with `repo` scope is needed github_token: ${{secrets.GITHUB_TOKEN}} # Required, workflow file name or ID - workflow: ci.yml + workflow: ci.yaml # Optional, the status or conclusion of a completed workflow to search for # Can be one of a workflow conclusion: # "failure", "success", "neutral", "cancelled", "skipped", "timed_out", "action_required" From ce8fbdfa34d18ca020199bbf4f623501f03ddb1b Mon Sep 17 00:00:00 2001 From: Guy Pilosof Date: Wed, 29 Jun 2022 10:10:53 +0300 Subject: [PATCH 12/12] debug (wip) --- .github/workflows/ci.yaml | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e637c0d4b..c94cc2403 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -62,35 +62,3 @@ jobs: with: name: descope-auth-0.0.1.tar.gz path: ./dist/descope-auth-0.0.1.tar.gz - - - name: Download artifact - uses: dawidd6/action-download-artifact@v2 - with: - # Optional, GitHub token, a Personal Access Token with `public_repo` scope if needed - # Required, if artifact is from a different repo - # Required, if repo is private a Personal Access Token with `repo` scope is needed - github_token: ${{secrets.GITHUB_TOKEN}} - # Required, workflow file name or ID - workflow: ci.yaml - # Optional, the status or conclusion of a completed workflow to search for - # Can be one of a workflow conclusion: - # "failure", "success", "neutral", "cancelled", "skipped", "timed_out", "action_required" - # Or a workflow status: - # "completed", "in_progress", "queued" - workflow_conclusion: success - # Optional, will use the branch - branch: upload-artifacts - # Optional, defaults to all types - event: push - # Optional, uploaded artifact name, - # will download all artifacts if not specified - # and extract them in respective subdirectories - # https://github.com/actions/download-artifact#download-all-artifacts - name: descope-auth-0.0.1.tar.gz - # Optional, defaults to current repo - #descope/python-sdk - repo: descope/python-sdk - - - name: Check artifact - run: | - ls -l