JoDi-2903/OASIS

Adjust test pipeline to set API Keys from UseCase 4

Closed this issue · 1 comments

Multiple API Keys are still in the source code which is bad coding style. In order to remove them we move them to GitHub Secrets to allow GitHub Actions to run the tests without problems. The secrets are set in the workflow as environment variables

New Usage

  1. Add secrets to GitHub (naming convention: <YOUR_API_NAME>_KEYNAME ) (can only be done by @JoDi-2903 )
  2. Add credentials to the GitHub Actions workflow (has to be done yourself)
    Example: test.yaml
env:
    TMDB_API_KEY: ${{ secrets.TMDB_API_KEY }}
  1. Use in the tests
os.getenv('<YOUR_API_NAME>_KEYNAME')

Note: For the normal run use the config file.