Using secrets in python test with tox #26745
-
Hello everyone, I am trying to use github actions and secrets in my python tests which I run via tox in repo https://github.com/romanjergon/flight_deals_searcher. Unfortunately I am not able to get the github secret value to python script even though it seems everything works in my other repo (without use of tox). I have defined .yml file in .github/workflows/tests.yml
Secret is defined for the repo: I have defined no environments in github. Env value is used in python test script
My job fails stating that the env variable does not exist - testing github secrets · romanjergon/flight_deals_searcher@29371c4 · GitHub Not sure if it plays any role but my tox configuration is in tox.ini Would anyone spot what is the cause of the issue? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
As this post was originally hidden by I assume spam protection I have found solution.
which solved the issue. |
Beta Was this translation helpful? Give feedback.
As this post was originally hidden by I assume spam protection I have found solution.
My tox.ini lacked definition of which env variables should be passed to the tests, tox does not pass all the variables.
So I have extended [testenv] definition with
which solved the issue.