snivilised / pixa

🧙 Directory tree based bulk image processor (Also serves as a working example of how to use extendio, cobrass and arcadia)
MIT License
0 stars 0 forks source link

enable bubbletea unit tests to run in github actions #169

Open plastikfan opened 3 months ago

plastikfan commented 3 months ago

To avoid the "could not open a new TTY" error when a tests runs in ci, the github actions config needs a change.

Issue might be related to gh-actions 241

plastikfan commented 3 months ago

As suggested by perplexity, I tried this in tthe workflow:

      - name: Set terminal environment
        run: export TERM=xterm

... and in context:

  golangci:
    name: lint
    runs-on: ubuntu-latest
    steps:
      - name: Set terminal environment
        run: export TERM=xterm
plastikfan commented 3 months ago

but actually, I might have made the change to the wrong job. Should be in test job, not golangci

This still fails even wehn moved to the test job.

Looking at bubbletea workflows, there is no mention of xterm.

Interesting article about the $TERM environment variable:

plastikfan commented 3 months ago

The solution to this porblem has still not been found