-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9656eac
commit bbcd32c
Showing
4 changed files
with
16 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,21 +20,13 @@ jobs: | |
- name: Install jq | ||
run: sudo apt-get update && sudo apt-get install -y jq | ||
|
||
- name: Process and Update Test Constants | ||
run: | | ||
CREDS="${{ secrets.VALID_SKYFLOW_CREDS_TEST }}" | ||
CREDS=$(echo "$CREDS" | sed 's/\\n/\n/g') | ||
echo "$CREDS" > ./tests/service_account/valid_credentials.json | ||
STRING_FORMAT=$(echo "$CREDS" | jq -c .) | ||
DICT_FORMAT=$(echo "$CREDS" | jq .) | ||
sed -i "s|VALID_CREDENTIALS_STRING = .*|VALID_CREDENTIALS_STRING = '$STRING_FORMAT'|" ./tests/constants/test_constants.py | ||
sed -i "s|VALID_SERVICE_ACCOUNT_CREDS = .*|VALID_SERVICE_ACCOUNT_CREDS = $DICT_FORMAT|" ./tests/constants/test_constants.py | ||
shell: bash | ||
- name: create-json | ||
id: create-json | ||
uses: jsdaniell/[email protected] | ||
with: | ||
name: "credentials.json" | ||
json: ${{ secrets.VALID_SKYFLOW_CREDS_TEST }} | ||
|
||
|
||
- name: 'Run Tests' | ||
run: | | ||
pip install -r requirements.txt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.