Skip to content

Commit

Permalink
build: simplify files
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoehnelt committed Nov 7, 2023
1 parent c06f258 commit 2dd23be
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,18 @@ jobs:
pipenv install
- name: Write test credentials
run: |
mkdir "${HOME}/secrets"
echo "${DEFAULT_CREDENTIALS}" > "${HOME}/secrets/default_credentials.json"
echo "${SERVICE_ACCOUNT_CREDENTIALS}" > "${HOME}/secrets/service_account.json"
echo "${CLIENT_ID_FILE}" > "${HOME}/secrets/client_id.json"
echo "${DEFAULT_CREDENTIALS}" > "default_credentials.json"
echo "${SERVICE_ACCOUNT_CREDENTIALS}" > "service_account.json"
echo "${CLIENT_ID_FILE}" > "client_id.json"
env:
DEFAULT_CREDENTIALS: ${{secrets.SNIPPETS_DEFAULT_CREDENTIALS}}
SERVICE_ACCOUNT_CREDENTIALS: ${{secrets.SNIPPETS_DELEGATED_ADMIN_SERVICE_ACCOUNT}}
CLIENT_ID_FILE: ${{secrets.SNIPPETS_CLIENT_ID_FILE}}
- name: Run tests
run: pipenv run python -m pytest
env:
GOOGLE_APPLICATION_CREDENTIALS: "${HOME}/secrets/default_credentials.json"
SERVICE_ACCOUNT_CREDENTIALS: "${HOME}/secrets/service_account.json"
GOOGLE_APPLICATION_CREDENTIALS: "default_credentials.json"
SERVICE_ACCOUNT_CREDENTIALS: "service_account.json"
LC_ALL: C.UTF-8
LANG: C.UTF-8
test:
Expand Down

0 comments on commit 2dd23be

Please sign in to comment.