From f31a9ad572111ecc94e1502bbd81874a0ab65903 Mon Sep 17 00:00:00 2001 From: Izaim Date: Wed, 27 Mar 2024 00:23:00 +0100 Subject: [PATCH] final touches --- .github/workflows/test_coverage_with_tokens.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test_coverage_with_tokens.yml b/.github/workflows/test_coverage_with_tokens.yml index c86c60df..3fb05fab 100644 --- a/.github/workflows/test_coverage_with_tokens.yml +++ b/.github/workflows/test_coverage_with_tokens.yml @@ -40,14 +40,9 @@ jobs: AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }} run: | - pip install awscli OUTPUT=$(aws cognito-idp "${{ secrets.COGNITO_INIT }}" --user-pool-id "${{ secrets.COGNITO_USER_POOL_ID }}" --client-id "${{ secrets.COGNITO_CLIENT_ID }}" --auth-flow "${{ secrets.COGNITO_AUTH_FLOW }}" --auth-parameters USERNAME="${{ secrets.COGNITO_USERNAME }}",PASSWORD=${{ secrets.COGNITO_PASSWORD }}) ACCESS_TOKEN=$(echo "$OUTPUT" | jq -r '.AuthenticationResult.AccessToken' | sed 's/^"\(.*\)"$/\1/') - EXPIRES=$(echo "$OUTPUT" | jq -r '.AuthenticationResult.ExpiresIn' | sed 's/^"\(.*\)"$/\1/') ID_TOKEN=$(echo "$OUTPUT" | jq -r '.AuthenticationResult.IdToken' | sed 's/^"\(.*\)"$/\1/') - echo $ACCESS_TOKEN - echo $EXPIRES - echo $ID_TOKEN - name: Setup Python uses: actions/setup-python@v4 @@ -55,7 +50,9 @@ jobs: python-version: 3.11 - name: Install CRIPT Python SDK - run: pip install -e . + run: | + ls -a + pip install -e . - name: Install requirements_dev.txt run: pip install -r requirements_dev.txt @@ -66,4 +63,4 @@ jobs: CRIPT_HOST: https://lb-stage.mycriptapp.org/ CRIPT_TOKEN: $ID_TOKEN CRIPT_STORAGE_TOKEN: $ACCESS_TOKEN - CRIPT_TESTS: False \ No newline at end of file + CRIPT_TESTS: False