I am trying to figure out a way of testing providers that require API tokens. It seems to be doable:
register and get API token
store it as a repository secret
load it in tests.yaml
load it via os.environ in tests
Note that secrets are loaded as empty strings if the PR is coming from a fork. We xfail in that case. I am going to merge this to trigger proper test and open a new PR adding other services as a branch of upstream.
I am trying to figure out a way of testing providers that require API tokens. It seems to be doable:
tests.yaml
os.environ
in testsNote that secrets are loaded as empty strings if the PR is coming from a fork. We xfail in that case. I am going to merge this to trigger proper test and open a new PR adding other services as a branch of upstream.