[Python] Python not printing output in Github Actions when using Conda Environment

Discussão em 'Python' iniciado por Stack, Julho 9, 2025.

  1. Stack

    Stack Membro Participativo

    I am running a self-hosted Github Actions workflow as a NetworkService where I have configurated my own local environments within the miniconda3 contained in the Service profile. The steps from the workflow are reflected here, as in:

    steps:
    - name: checkout code
    uses: actions/checkout@v4

    - name: conda info
    run: |
    conda activate myenv
    conda info
    conda env list

    - name: run test
    run: |
    conda activate myenv
    python run.py


    The workflow runs just fine. I get all the info from myenv and it shows what I predicted to show. However, although the python script runs, I get no output of the script, which should show me a pytest-like routine that I can run perfectly if operated manually.

    Any idea on why is this happening? How can it be solved?

    Continue reading...

Compartilhe esta Página