Skip to content

Commit

Permalink
final touches
Browse files Browse the repository at this point in the history
  • Loading branch information
izaim authored Mar 26, 2024
1 parent abddaa0 commit f31a9ad
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/test_coverage_with_tokens.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,19 @@ 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
with:
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
Expand All @@ -66,4 +63,4 @@ jobs:
CRIPT_HOST: https://lb-stage.mycriptapp.org/
CRIPT_TOKEN: $ID_TOKEN
CRIPT_STORAGE_TOKEN: $ACCESS_TOKEN
CRIPT_TESTS: False
CRIPT_TESTS: False

0 comments on commit f31a9ad

Please sign in to comment.