[Python] Travis CI Environment Variables Not Being Used in tests

Discussão em 'Python' iniciado por Stack, Fevereiro 15, 2025.

  1. Stack

    Stack Membro Participativo

    I have set up my credentials (username/password) as environment variables in Travis CI. In my code, I am using the following snippet to retrieve these environment variables:

    username = os.environ.get("HITRAN_USERNAME") or input("Enter HITRAN username: ")password = os.environ.get("HITRAN_PASSWORD") or getpass("Enter HITRAN password: ")


    However, my tests are still prompting for credential input. How can I ensure that Travis CI correctly uses the environment variables? What might I be doing wrong?

    I tried pulling env variables in the test, that didnt work aswell

    Continue reading...

Compartilhe esta Página